SCCM Packages – Putty

I’m making a series of posts describing the package creation process for the applications in my current lab image. This post is about Putty.

References

General Info

Putty is distributed as an exe file with no actual installer. A installer version is also available on the download page, but it’s not all that useful. To run the putty, we need to create a shortcut to the application file. I put my putty.exe file into %SystemRoot% so that by default I can use start -> run -> “Putty”.

Process

  1. Download the latest Putty executable from the website above.
  2. Copy the file to C:\temp\putty.
  3. Create a script named “Make-Shortcuts_Putty.ps1″ that creates the putty shortcuts. For help creating a shortcut script see my previous blog post “Creating Shortcuts for SCCM Packages“.
    Use the following parameters:
    Target Path: “C:\windows\putty.exe”
    Shortcut Name: Putty.lnk
  4. Create a batch file named “Install-jmol.cmd” with the following contents:
    REM Main Install
    xcopy /y putty.exe %systemroot%\
    
    REM Shortcuts
    powershell -noprofile -command "& {$a = get-executionpolicy;If((get-executionpolicy) -ne 'Unrestricted'){set-executionpolicy unrestricted -force;}; .\Make-Shortcuts_Putty.ps1; set-executionpolicy $a}"
  5. Assemble the files into a single source folder then create a SCCM package and program. The program’s command line action should be “install-putty.cmd”. The following is a screen shot of my final source folder:

All done!

Advertisements

One thought on “SCCM Packages – Putty

  1. Pingback: Table of Contents | windowsmasher

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s