Topic "Unattended installation"

Author Message
Guest

Guest


Is there any doc about unattended installation?
In case there is no, how can i silently install Winscp?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
WinSCP does not require installation, so you may just copy executable file and create icons (if you need them). But just in case:

Extract from InnoSetup documentation:

The Setup program accepts optional command line parameters. These can be useful to system administrators, and to other programs calling the Setup program.

/SP- Disables the This will install... Do you wish to continue? prompt at the beginning of Setup. Of course, this will have no effect if the DisableStartupPrompt [Setup] section directive was set to yes.

/SILENT, /VERYSILENT
Instructs Setup to be silent or very silent. When Setup is silent the wizard and the background window are not displayed but the installation progress window is. When a setup is very silent this installation progress window is not displayed. Everything else is normal so for example error messages during installation are displayed and the startup prompt is (if you haven't disabled it with DisableStartupPrompt or the '/SP-' command line option explained above)
If a restart is necessary and the '/NORESTART' command isn't used (see below) and Setup is silent, it will display a Reboot now? messagebox. If it's very silent it will reboot without asking.

/NOCANCEL
Prevents the user from cancelling during the installation process, by disabling the Cancel button and ignoring clicks on the close button. Useful along with /SILENT.

/NORESTART
Instructs Setup not to reboot even if it's necessary.

/LOADINF="filename"
Instructs Setup to load the settings from the specified file after having checked the command line. This file can be prepared using the '/SAVEINF=' command as explained below.
Don't forget to use quotes if the filename contains spaces.

/SAVEINF="filename"
Instructs Setup to save installation settings to the specified file. Don't forget to use quotes if the filename contains spaces.

/DIR="x:\dirname"
Overrides the default directory name displayed on the Select Destination Directory wizard page. A fully qualified pathname must be specified. If the [Setup] section directive DisableDirPage was set to yes, this command line parameter is ignored.

/GROUP="folder name"
Overrides the default folder name displayed on the Select Start Menu Folder wizard page. If the [Setup] section directive DisableProgramGroupPage was set to yes, this command line parameter is ignored.

/NOICONS
Instructs Setup to initially disable the Don't create any icons check box on the Select Start Menu Folder wizard page.

/COMPONENTS="comma separated list of component names"
Overrides the default components settings. Using this command line parameter causes Setup to automatically select a custom type.
_________________
Martin Prikryl
Guest

Guest


Thank's a lot about pointing me to this.

Also a big thanks for your development!!
Regard's
Niels

Guest


When i create an unattented installation file .inf file using /SAVEINF=wincmd.inf paremeter, it doesn't record that i changed the Initial user settings/User interface style from Commander interface to Explorer interface.
When i install silently using this command: winscp435setup.exe /LOADINF=winscp.inf /SILENT
it still comes up with Commander interface.
Other changes are recorded ok such as no check for updates and no desktp shortcut.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Niels wrote:
When i create an unattented installation file .inf file using /SAVEINF=wincmd.inf paremeter, it doesn't record that i changed the Initial user settings/User interface style from Commander interface to Explorer interface.
When i install silently using this command: winscp435setup.exe /LOADINF=winscp.inf /SILENT
it still comes up with Commander interface.
Other changes are recorded ok such as no check for updates and no desktp shortcut.

Thanks for your post.
This bug has been added to the tracker:
http://winscp.net/tracker/show_bug.cgi?id=758
Meanwhile you can set the respective registry key in your script:

Code:
REGEDIT4

[HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\Configuration\Interface]
"Interface"=dword:00000001

_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License