Difference between revisions of "WinSCP"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(WinSCP 4.3.x: Moved unique info from 4.1 section to 4.3 section)
(WinSCP 4.3.x: OpenCandy no longer included, but could be in future)
Line 17: Line 17:
 
type="uninstall"
 
type="uninstall"
 
condition="exists"
 
condition="exists"
path="WinSCP 4.3.5" />
+
path="WinSCP 4.3.9" />
  
 
<install
 
<install
cmd="%SOFTWARE%\winscp\winscp435setup.exe /sp- /silent /nocancel /norestart /nocandy /log" />
+
cmd="%SOFTWARE%\winscp\winscp439setup.exe /sp- /silent /nocancel /norestart /nocandy /log" />
  
 
<upgrade
 
<upgrade
cmd="%SOFTWARE%\winscp\winscp435setup.exe /sp- /silent /nocancel /norestart /nocandy /log" />
+
cmd="%SOFTWARE%\winscp\winscp439setup.exe /sp- /silent /nocancel /norestart /nocandy /log" />
  
 
<remove
 
<remove
Line 31: Line 31:
 
</source>
 
</source>
  
The /NOCANDY parameter ensures [http://winscp.net/eng/docs/opencandy OpenCandy], the facility for serving adverts 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.
+
The /NOCANDY parameter ensures [http://winscp.net/eng/docs/opencandy OpenCandy], the facility for serving adverts during installation (and only 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. Some versions of WinSCP have included OpenCandy, but they don't at present, but this parameter remains included in case OpenCandy is included in future.
  
 
===winscp.inf===
 
===winscp.inf===
 
If you want even more control over installation parameters you can generate a winscp.inf file by running:
 
If you want even more control over installation parameters you can generate a winscp.inf file by running:
  winscp435setup.exe /SAVEINF="winscp.inf"
+
  winscp439setup.exe /SAVEINF="winscp.inf"
  
 
Then use /LOADINF="%SOFTWARE%\winscp\winscp.inf" during installation.
 
Then use /LOADINF="%SOFTWARE%\winscp\winscp.inf" during installation.

Revision as of 10:20, 15 November 2012

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

WinSCP 4.3.x

WinSCP uses an InnoSetup installer. The installation is described in the WinSCP documentation on installation.

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

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

	<install
		cmd="%SOFTWARE%\winscp\winscp439setup.exe /sp- /silent /nocancel /norestart /nocandy /log" />

	<upgrade
		cmd="%SOFTWARE%\winscp\winscp439setup.exe /sp- /silent /nocancel /norestart /nocandy /log" />

	<remove
		cmd="%PROGRAMFILES%\WinSCP\unins000.exe /silent /log /norestart" />
</package>

The /NOCANDY parameter ensures OpenCandy, the facility for serving adverts during installation (and only 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. Some versions of WinSCP have included OpenCandy, but they don't at present, but this parameter remains included in case OpenCandy is included in future.

winscp.inf

If you want even more control over installation parameters you can generate a winscp.inf file by running:

winscp439setup.exe /SAVEINF="winscp.inf"

Then use /LOADINF="%SOFTWARE%\winscp\winscp.inf" during installation.

After generating winscp.inf, 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 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>