Difference between revisions of "WinSCP"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(WinSCP 4.2.5)
(Some tidy up, but needs a lot more)
Line 1: Line 1:
This is a silent installer and uninstaller for WinSCP an FPT, SFTP and SCP client. More infos from [http://winscp.net/ here].
+
This is a silent installer and uninstaller for WinSCP ([http://winscp.net/ http://winscp.net/]), an FTP, SFTP and SCP client..
  
== WinSCP 4.2.5 ==
+
== WinSCP 4.2.x ==
 
<source lang="xml">
 
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
 
  
<packages>
 
 
<package
 
<package
 
   id="winscp"
 
   id="winscp"
Line 22: Line 20:
  
 
</package>
 
</package>
</packages>
 
 
</source>
 
</source>
  
The /NOCANDY parameter is necessary when /VERYSILENT flag is used. Without it a dialog box containing ''Please choose an option'' text will pop up and halt the whole installation process. I suspect this has something to do with inclusion of PalTalk in the installer.
+
The /NOCANDY parameter ensures [http://winscp.net/eng/docs/opencandy OpenCandy], the facility for servingadverts during installation, isn't included. Without it a dialog box containing ''Please choose an option'' text will pop up in versions of the installer that include OpenCandy and halt the whole installation process. Alternatively a version of the installer can be chosen that doesn't include OpenCandy. Note that WinSCP 4.3.5, at least at time of release, didn't include OpenCandy but this isn't the norm.
winscp.inf file can be generated by running:
+
 
 +
A winscp.inf file can be generated by running:
 
  winscp425setup.exe /SAVEINF="winscp.inf"
 
  winscp425setup.exe /SAVEINF="winscp.inf"
  
Attention (after generating the inf via SAVEINF):
+
After generating the inf via /SAVEINF, if you use a general installation script (like above), edit the line "DIR=C:\Program Files (x86)\WinSCP" to "DIR=" in order to force the intaller to install into its standard installation directory.
If you use a general installation script (like above), please edit the line "DIR=C:\Program Files (x86)\WinSCP" to "DIR=" in ordner to force the standard installation directory from setup installer.
+
 
Furthermore the "remove-action" should be edited.
 
Furthermore the "remove-action" should be edited.
  
== WinSCP 4 ==
+
== WinSCP 4.1.x ==
  
 
Use the following XML file for silent installation:
 
Use the following XML file for silent installation:
 
<source lang="xml">
 
<source lang="xml">
<?xml version="1.0" encoding="utf-8"?>
 
  
<packages>
 
 
   <package
 
   <package
 
     id='WinSCP'
 
     id='WinSCP'
Line 59: Line 54:
 
</source>
 
</source>
  
It is using InnoSetup. The installation is described on their [http://winscp.net/eng/docs/installation#automating_installation Homepage]. Basically you need to execute
+
WinSCP uses an InnoSetup installer. The installation is described in the WinSCP [http://winscp.net/eng/docs/installation#automating_installation documentation]. Basically you need to execute
 
<pre>
 
<pre>
 
winscp406setup.exe /SAVEINF="default.inf"
 
winscp406setup.exe /SAVEINF="default.inf"

Revision as of 17:11, 7 October 2011

This is a silent installer and uninstaller for WinSCP (http://winscp.net/), an FTP, SFTP and SCP client..

WinSCP 4.2.x

<package
   id="winscp"
   name="WinSCP"
   revision="200912281"
   reboot="false"
   priority="10">

   <check type="uninstall" condition="exists" path="WinSCP 4.2.5" />

   <install cmd='"%SOFTWARE%\winscp\winscp425setup.exe" /NOCANDY /LOADINF="%SOFTWARE%\winscp\winscp.inf" /VERYSILENT /NORESTART' />

   <upgrade cmd='"%SOFTWARE%\winscp\winscp425setup.exe" /NOCANDY  /LOADINF="%SOFTWARE%\winscp\winscp.inf" /VERYSILENT /NORESTART' />

   <remove cmd='"%PROGRAMFILES%\WinSCP\unins000.exe" /VERYSILENT /NORESTART' />

</package>

The /NOCANDY parameter ensures OpenCandy, the facility for servingadverts during installation, isn't included. Without it a dialog box containing Please choose an option text will pop up in versions of the installer that include OpenCandy and halt the whole installation process. Alternatively a version of the installer can be chosen that doesn't include OpenCandy. Note that WinSCP 4.3.5, at least at time of release, didn't include OpenCandy but this isn't the norm.

A winscp.inf file can be generated by running:

winscp425setup.exe /SAVEINF="winscp.inf"

After generating the inf via /SAVEINF, if you use a general installation script (like above), edit the line "DIR=C:\Program Files (x86)\WinSCP" to "DIR=" in order to force the intaller to install into its standard installation directory. Furthermore the "remove-action" should be edited.

WinSCP 4.1.x

Use the following XML file for silent installation:

  <package
    id='WinSCP'
    name='WinSCP'
    revision='415'
    priority='0'
    reboot='false'>
  
    <check type='uninstall' condition='exists' path='WinSCP 4.1.5'/>

    <install cmd='%SOFTWARE%\winscp\winscp415setup.exe /VERYSILENT /NORESTART /LOADINF="%SOFTWARE%\winscp\default.ini"'/>

    <upgrade cmd='%SOFTWARE%\winscp\winscp415setup.exe /VERYSILENT /NORESTART /LOADINF="%SOFTWARE%\winscp\default.ini"'/>

    <remove cmd='"%ProgramFiles%\WinSCP\unins000.exe" /VERYSILENT'/>

  </package>
</packages>

WinSCP uses an InnoSetup installer. The installation is described in the WinSCP documentation. Basically you need to execute

winscp406setup.exe /SAVEINF="default.inf"

WinSCP 3

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

<packages>
  <package
    id="winscp3"
    name="WinSCP v3"
    revision="3560"
    priority="0"
    reboot="false">

    <check type="uninstall" condition="exists" path="WinSCP 3.5.6"/>

    <install cmd='%SOFTWARE%\winscp\winscp356setup.exe /sp- /silent /norestart'/>

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

  </package>
</packages>