Difference between revisions of "WinSCP"
m |
(→WinSCP 4.2.5) |
||
Line 9: | Line 9: | ||
id="winscp" | id="winscp" | ||
name="WinSCP" | name="WinSCP" | ||
− | revision=" | + | revision="200912281" |
reboot="false" | reboot="false" | ||
priority="10"> | priority="10"> |
Revision as of 07:52, 7 October 2011
This is a silent installer and uninstaller for WinSCP an FPT, SFTP and SCP client. More infos from here.
WinSCP 4.2.5
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<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>
</packages>
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. winscp.inf file can be generated by running:
winscp425setup.exe /SAVEINF="winscp.inf"
Attention (after generating the inf via SAVEINF): 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.
WinSCP 4
Use the following XML file for silent installation:
<?xml version="1.0" encoding="utf-8"?>
<packages>
<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>
It is using InnoSetup. The installation is described on their Homepage. 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>