Difference between revisions of "Putty"
From WPKG | Open Source Software Deployment and Distribution
(replaced %SYSTEMROOT% instead of c:\windows) |
m (Style tweaks) |
||
Line 3: | Line 3: | ||
<source lang="xml"> | <source lang="xml"> | ||
− | < | + | <package |
+ | id="putty" | ||
+ | name="PuTTY" | ||
+ | revision="%version%" | ||
+ | priority="0" | ||
+ | reboot="false"> | ||
− | + | <variable name="%version%" value="0.60" /> | |
− | < | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | <check type="uninstall" condition="exists" path="PuTTY version %version%" /> | |
− | + | <install cmd='%SOFTWARE%\putty\putty-%version%-installer.exe /sp- /verysilent' /> | |
− | + | <upgrade cmd='%SOFTWARE%\putty\putty-%version%-installer.exe /sp- /verysilent' /> | |
− | + | <remove cmd='"%PROGRAMFILES%\PuTTY\unins000.exe" /sp- /verysilent /norestart' /> | |
− | + | </package> | |
− | + | ||
− | + | ||
</source> | </source> | ||
''Note that the above causes a popup during uninstall. This is caused by putty 0.58+ uninstallers calling 'putty -cleanup-during-uninstall'. A (lame, and not properly tested) fix for this is to simply add the following extra line before the current <remove> line: '' | ''Note that the above causes a popup during uninstall. This is caused by putty 0.58+ uninstallers calling 'putty -cleanup-during-uninstall'. A (lame, and not properly tested) fix for this is to simply add the following extra line before the current <remove> line: '' | ||
<source lang="xml"> | <source lang="xml"> | ||
− | + | <remove cmd='%COMSPEC% /c copy "%WINDIR%\system32\print.exe" "%PROGRAMFILES%\PuTTY\putty.exe"' /> | |
</source> | </source> | ||
Revision as of 19:16, 3 September 2010
This is a silent installer and uninstaller for Putty.
Putty is an SSH (and other secure protocol) client which allows you to open a terminal to your Unix server from Windows.
<package
id="putty"
name="PuTTY"
revision="%version%"
priority="0"
reboot="false">
<variable name="%version%" value="0.60" />
<check type="uninstall" condition="exists" path="PuTTY version %version%" />
<install cmd='%SOFTWARE%\putty\putty-%version%-installer.exe /sp- /verysilent' />
<upgrade cmd='%SOFTWARE%\putty\putty-%version%-installer.exe /sp- /verysilent' />
<remove cmd='"%PROGRAMFILES%\PuTTY\unins000.exe" /sp- /verysilent /norestart' />
</package>
Note that the above causes a popup during uninstall. This is caused by putty 0.58+ uninstallers calling 'putty -cleanup-during-uninstall'. A (lame, and not properly tested) fix for this is to simply add the following extra line before the current <remove> line:
<remove cmd='%COMSPEC% /c copy "%WINDIR%\system32\print.exe" "%PROGRAMFILES%\PuTTY\putty.exe"' />
Here's a package.xml for distributing the putty.exe without the installer. It installs to the System32 folder in %SYSTEMROOT% (often c:\windows\system32) for quick Start/Run access.
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
id="putty"
name="Putty"
revision="0"
reboot="false"
priority="0">
<check type="file" condition="exists" path="%SYSTEMROOT%\system32\putty.exe"/>
<install cmd='cmd.exe /C copy /y %SOFTWARE%\putty\putty.exe %SYSTEMROOT%\system32\'/>
<remove cmd='cmd.exe /C del %SYSTEMROOT%\system32\putty.exe'/>
<upgrade cmd='cmd.exe /C copy /y %SOFTWARE%\putty\putty.exe %SYSTEMROOT%\system32\'/>
</package>
</packages>