Difference between revisions of "Putty"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Made more readable, added PRE tags and added url)
Line 19: Line 19:
 
</packages>
 
</packages>
 
</pre>
 
</pre>
 +
 +
Here's a package.xml for distributing the putty.exe withou the installer.
 +
It installs to the System32 folder for quick Start/Run access.
 +
<pre>
 +
<?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="C:\windows\system32\putty.exe" />
 +
      <install cmd='cmd.exe /C copy /y %SOFTWARE%\putty\putty.exe c:\windows\system32\'>
 +
        <exit code="0" />
 +
      </install>
 +
      <remove  cmd='cmd.exe /C del c:\windows\system32\putty.exe' />
 +
      <upgrade cmd='cmd.exe /C copy /y %SOFTWARE%\putty\putty.exe c:\windows\system32\' />
 +
  </package>
 +
</packages>
 +
</pre>
 +
 
[[category:Silent Installers|Putty]]
 
[[category:Silent Installers|Putty]]

Revision as of 10:02, 21 September 2006

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.

<?xml version="1.0" encoding="UTF-8"?>

<packages>
   <package
      id="putty"
      name="Putty"
      revision="1"
      priority="0"
      reboot="false">

      <check type="uninstall" condition="exists" path="PuTTY version 0.58" />
      <install cmd='%PACKAGES%\putty\putty-0.58-installer.exe /sp- /silent' />
      <remove cmd='"%PROGRAMFILES%\PuTTY\unins000.exe" /sp- /silent /norestart' />
      <upgrade cmd='' />
   </package>
</packages>

Here's a package.xml for distributing the putty.exe withou the installer. It installs to the System32 folder 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="C:\windows\system32\putty.exe" />
      <install cmd='cmd.exe /C copy /y %SOFTWARE%\putty\putty.exe c:\windows\system32\'>
         <exit code="0" />
      </install>
      <remove  cmd='cmd.exe /C del c:\windows\system32\putty.exe' />
      <upgrade cmd='cmd.exe /C copy /y %SOFTWARE%\putty\putty.exe c:\windows\system32\' />
   </package>
</packages>