Changes

Jump to: navigation, search

Putty

202 bytes removed, 13:03, 4 February 2015
Installer (32bit package works on 32bit and 64bit systems)
<source lang="xml">
<package
id="putty" name="PuTTY" revision="%version%" priority="0" reboot="false">
<variable name="version" value="0.6263" />
<check type!-- Adds x86 for 64 bit systems --> <variable name="uninstallPKG_DESTINATION" condition value="exists%PROGRAMFILES%\PuTTY" path/> <variable name="PKG_DESTINATION" value="PuTTY version %versionPROGRAMFILES(x86)%\PuTTY" architecture="x64" />
<install cmd='%SOFTWARE%\putty\putty!-%- Checks uninstall exists (version%is in title) -installer.exe /sp- /verysilent' > <check type="uninstall" condition="exists" path="PuTTY version %version%" />
<upgrade !-- Silent install --> <install cmd='%SOFTWARE%\putty\putty-%version%-installer.exe /sp- /verysilent' />
<remove cmd='%COMSPEC% /c if exist "%PROGRAMFILES%\PuTTY\putty.exe" %COMSPEC% /c copy "%SYSTEMROOT%\system32\print.exe" "%PROGRAMFILES%\PuTTY\putty.exe"' /> <remove cmd='%COMSPEC% /c if exist "%PROGRAMFILES(X86)%\PuTTY\putty.exe" %COMSPEC% /c copy "%SYSTEMROOT%\system32\print.exe" "%PROGRAMFILES(X86)%\PuTTY\putty.exe"' />  <remove cmd='%COMSPEC% /c if exist "%PROGRAMFILES%\PuTTY\unins000.exe" "%PROGRAMFILES%\PuTTY\unins000.exe" /sp!-- Same as install so used include - /verysilent /norestart'> <exit code="1" /> </remove> <remove cmd='%COMSPEC% /c if exist "%PROGRAMFILES(X86)%\PuTTY\unins000.exe" "%PROGRAMFILES(X86)%\PuTTY\unins000.exe" /sp- /verysilent /norestart'> <exit codeupgrade include="1" /> </remove>  <remove cmd='%COMSPEC% /c if exist "%PROGRAMFILES%\PuTTY" %COMSPEC% /c rmdir /s /q "%PROGRAMFILES%\PuTTY"' /> <remove cmd='%COMSPEC% /c if exist "%PROGRAMFILES(X86)%\PuTTY" %COMSPEC% /c rmdir /s /q "%PROGRAMFILES(X86)%\PuTTYinstall"' />
<!-- Overwrites putty with small file -->
<!-- Prevents putty -cleanup-during-uninstall calling dialogue box -->
<remove cmd='copy "%SYSTEMROOT%\system32\print.exe" "%PKG_DESTINATION%\putty.exe"' />
<remove cmd='"%PKG_DESTINATION%\unins000.exe" /sp- /verysilent /norestart'>
<exit code="1" />
</remove>
<!-- Removes putty folder in case it holds on some how -->
<remove cmd='rmdir /s /q "%PKG_DESTINATION%"'>
<exit code='any' />
</remove>
</package>
</source>
27
edits

Navigation menu