Difference between revisions of "Putty"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Use "/verysilent" instead of "/silent" to (almost) completely hide the installer UI)
m (Use new syntax highlighting plugin for package xml and standardize the xml layout.)
Line 1: Line 1:
 
This is a silent installer and uninstaller for [http://www.chiark.greenend.org.uk/~sgtatham/putty/ Putty].<br>
 
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.
 
[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.
<pre>
+
 
 +
<source lang="xml">
 
<?xml version="1.0" encoding="UTF-8"?>
 
<?xml version="1.0" encoding="UTF-8"?>
  
 
<packages>
 
<packages>
  <package
+
  <package
      id="putty"
+
    id="putty"
      name="Putty"
+
    name="Putty"
      revision="0600"
+
    revision="0600"
      priority="0"
+
    priority="0"
      reboot="false">
+
    reboot="false">
  
      <check type="uninstall" condition="exists" path="PuTTY version 0.60" />
+
    <check type="uninstall" condition="exists" path="PuTTY version 0.60"/>
      <install cmd='%SOFTWARE%\putty\putty-0.60-installer.exe /sp- /verysilent' />
+
 
      <upgrade cmd='%SOFTWARE%\putty\putty-0.60-installer.exe /sp- /verysilent' />
+
    <install cmd='%SOFTWARE%\putty\putty-0.60-installer.exe /sp- /verysilent'/>
      <remove cmd='"%PROGRAMFILES%\PuTTY\unins000.exe" /sp- /verysilent /norestart' />
+
 
  </package>
+
    <upgrade cmd='%SOFTWARE%\putty\putty-0.60-installer.exe /sp- /verysilent'/>
 +
 
 +
    <remove cmd='"%PROGRAMFILES%\PuTTY\unins000.exe" /sp- /verysilent /norestart'/>
 +
 
 +
  </package>
 
</packages>
 
</packages>
</pre>
+
</source>
  
 
Here's a package.xml for distributing the putty.exe without the installer.
 
Here's a package.xml for distributing the putty.exe without the installer.
 
It installs to the System32 folder for quick Start/Run access.
 
It installs to the System32 folder for quick Start/Run access.
<pre>
+
 
 +
<source lang="xml">
 
<?xml version="1.0" encoding="UTF-8"?>
 
<?xml version="1.0" encoding="UTF-8"?>
  
 
<packages>
 
<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\'/>
 +
 +
    <remove cmd='cmd.exe /C del c:\windows\system32\putty.exe'/>
  
  <package
+
    <upgrade cmd='cmd.exe /C copy /y %SOFTWARE%\putty\putty.exe c:\windows\system32\'/>
      id="putty"
+
      name="Putty"
+
      revision="0"
+
      reboot="false"
+
      priority="0">
+
  
      <check type="file" condition="exists" path="C:\windows\system32\putty.exe" />
+
  </package>
      <install cmd='cmd.exe /C copy /y %SOFTWARE%\putty\putty.exe c:\windows\system32\' />
+
      <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>
 
</packages>
</pre>
+
</source>
  
 
[[category:Silent Installers]]
 
[[category:Silent Installers]]

Revision as of 22:42, 4 February 2008

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="0600"
    priority="0"
    reboot="false">

    <check type="uninstall" condition="exists" path="PuTTY version 0.60"/>

    <install cmd='%SOFTWARE%\putty\putty-0.60-installer.exe /sp- /verysilent'/>

    <upgrade cmd='%SOFTWARE%\putty\putty-0.60-installer.exe /sp- /verysilent'/>

    <remove cmd='"%PROGRAMFILES%\PuTTY\unins000.exe" /sp- /verysilent /norestart'/>

  </package>
</packages>

Here's a package.xml for distributing the putty.exe without 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\'/>

    <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>