/build/static/layout/Breadcrumb_cap_w.png

Martin Prikryl WinSCP

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login
Views: 7.3k  |  Created: 05/01/2007

Average Rating: 0
WinSCP has 34 inventory records, 0 Questions, 0 Blogs and 0 links. Please help add to this by sharing more!

Deployment Tips (6)

Most Common Setup Type
Not Determined
Average Package Difficulty Rating
Rated 2 / 5 (Somewhat Easy) based on 2 ratings
Most Commonly Reported Deployment Method
Vendor Provided Command Line (answer file driven)

Deployment Tip Summary

The WinScp setup exe can be captured to the MSI format. The only issue which occurs is that the "SendTo" shortcut does not work when you capture the MSI. Though after Self heal, the shortcut is restored to %appdata%\Microsoft\SendTo\ folder, but it does not work. I finally removed this shortcut from MSI and wrote a VB Script to create a shortcut. Then had to add active setup so this script runs for all users.
127
Command Line
WinSCP uses InnoSetup:

Install:
Record inf file:
winscp404setupintl.exe /SAVEINF="winscp.inf"

Within the inf you can configure the creation of Icons incl. Desktop icons.

Silent Install using recorded inf file:
winscp404setupintl.exe /SILENT /VERYSILENT /SUPPRESSMSGBOXES /LOADINF="winscp.inf"

Uninstall:
%ProgramFiles%\WinSCP\unins000.exe /SILENT /VERYSILENT /SUPRESSMSGBOXES /NORESTART

A reboot is recommended after uninstall.

Be warned: Command line switches are case sensitive.
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
118
Note
This is how I deploy WinSCP with a GPO over AD.

The WinSCP-installer supports using an answer-file. I believe the installer itself is an NSIS, but am not sure. A sample answer-file is found below. Put it in the same folder as the winscp-installer on your admin share. For simplicity's (future) sake call your answer-file something like "winscp400.txt" to distinguish it from earlier versions. AFAIK there are no changes in the answerfile from v3.x.

The answer-file breaks up into five categories:

Lang= What language to install.
Dir= Where the program should be installed. No quotes around LFN's!
Group= Name of the startmenu group.
NoIcons= 0 means create icons on desktop, 1 means don't.
Components= What components to install. You must have at least the main component. The others are optional AFAIK.

You can also run the installer manually with the "/SAVEINF=“filename”-parameter to reocord a custom answer file.

---
[Setup]
Lang=en
Dir=C:\Program Files\WinSCP
Group=WinSCP
NoIcons=0
Components=main,shellext,pageant,puttygen
---

Next the GPO-script that installs the shebang.

Having had problems with installations that always run, despite WinSCP already having been intalled, the condition testing will avoid that. If if finds the answer-file in the program files-folder, the script silently exit.

For some reason the silent install, installs a desktop icon on the logged on user's desktop instead of in the all users desktop-folder. Supposedly the switch "/mergetasks="desktopicon\common", will create the icons in the all users desktop folder. Haven't tried it though. Myself, I don't want any desktop icons. 8-)

The LOADINF-line points to the answer-file you created above.

---
if exist "%ProgramFiles%\WinSCP\winscp400.txt" goto end1 else goto install

:install
"\\domain.local\dfs\msi\WinSCP v4.00beta\winscp400setup.exe" /VERYSILENT /NORESTART /LOADINF="\\domain.local\dfs\msi\WinSCP v4.00beta\winscp400.txt" /NOICONS
"\\domain.local\dfs\MSI\robocopy" "\\domain.local\dfs\MSI\WinSCP v4.00beta" "%ProgramFiles%\WinSCP" winscp400.txt /R:1 /W:5

:end1
if not exist "%allusersprofile%\Desktop\WinSCP.lnk" goto end2 else goto deletelink

:deletelink
del /F /Q "%allusersprofile%\Desktop\WinSCP.lnk"
del /F /Q "%userprofile%\Desktop\WinSCP.lnk"

:end2
---

Make sure each line is on one line. Your browser may wrap lines!
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
2
Note
For folks trying to install WinSCP without desktop icon below is how your winscp.inf file should look like. Note that the NoIcons=0 or 1 (actually is for the programs menu folder and not for the desktop icon itself)

[Setup]
Lang=en
Dir=C:\Program Files\WinSCP
Group=WinSCP
NoIcons=0
SetupType=full
Components=main,shellext,pageant,puttygen,transl,transl\eng
Tasks=urlhandler
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
1
Note
The WinScp setup exe can be captured to the MSI format. The only issue which occurs is that the "SendTo" shortcut does not work when you capture the MSI. Though after Self heal, the shortcut is restored to %appdata%\Microsoft\SendTo\ folder, but it does not work. I finally removed this shortcut from MSI and wrote a VB Script to create a shortcut. Then had to add active setup so this script runs for all users.
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
0
Virtualization

Can be easily virtualized with App-V by extracting the executables, using the sequencer to copy the executables to the virtual drive, and using the sequencer GUI to create shortcuts to the executables on the virtual drive.

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
0
Note
WinSCP v4.2.5 doesn't seem to allow for a silent install anymore. I get a popup requesting me to chose an option. I believe this to have something to do with the new Opencandy-stuff, please note I'm speculating though. I've notified the author and expect feedback soonish. Normal manual install seems to work flawlessly. In the meantime one could use the non-installer version to deploy the core files as they are with a simple batch scipt.

Update: Now it works for no apparent reason... You might want to add an uninstall-command and also reboot before installing the new version. You might also want to create a new inf-file, according to KPrinz notes above. Please mind the CAPITAL letters in the switches, the installer is case sensitive!

A "new" inf-file should look like below, for a no-frills standard scripted install w/o any OpenCandy-stuff.

WinSCP4.inf:

[Setup]
Lang=en
Dir=C:\Program Files\WinSCP
Group=WinSCP
NoIcons=0
SetupType=full
Components=main,shellext,pageant,puttygen,transl,transl\eng
Tasks=enableupdates,sendtohook,urlhandler,searchpath
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows

Inventory Records (34)

View inventory records anonymously contributed by opt-in users of the K1000 Systems Management Appliance.

Questions & Answers (0)

Questions & Answers related to Martin Prikryl WinSCP

Blogs (0)

Blog posts related to Martin Prikryl WinSCP

Reviews (0)

Reviews related to Martin Prikryl WinSCP

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ