Changes

Jump to: navigation, search

Putty

202 bytes added, 21:13, 3 September 2010
Section headers and better uninstall
This is a silent installer and uninstaller for [http://www.chiark.greenend.org.uk/~sgtatham/putty/ Putty].<br>
[http://www.chiark.greenend.org.uk/~sgtatham/putty/ Putty] is an [http://www.openssh.org SSH] (and other secure protocol) client which allows you to open a terminal to your Unix server from Windows.
 
== Installer ==
<source lang="xml">
<upgrade cmd='%SOFTWARE%\putty\putty-%version%-installer.exe /sp- /verysilent' />
<remove cmd='%COMSPEC% /c copy "%SYSTEMROOT%\system32\print.exe" "%PROGRAMFILES%\PuTTY\putty.exe"' /> <remove cmd='"%PROGRAMFILES%\PuTTY\unins000.exe" /sp- /verysilent /norestart' > <exit code="1" /> </remove> <remove cmd='%COMSPEC% /c rmdir /s /q "%PROGRAMFILES%\PuTTY"' />
</package>
</source>
''Note that the above causes a popup during uninstall. This is caused by putty PuTTY 0.58+ uninstallers calling call 'putty -cleanup-during-uninstall'during uninstall. A (lameThis causes a pop-up to appear which breaks the silent uninstall. As shown above, and not properly tested) a fix for this is to simply add the following extra line before the current <remove> line: '' <source lang="xml"><remove cmd='%COMSPEC% /c copy "%WINDIR%\system32\printsimple program that always returns over putty.exe" "%PROGRAMFILES%\PuTTY\putty. The entire program folder is also removed so that any leftover unins000.exe"' />files from failed uninstalls are removed.</source>== Standalone ==
Here's a package.xml for distributing the putty.exe without the installer.
117
edits

Navigation menu