0
1
As time goes by, it is (fortunately) more usual to find command-line installers for most Windows GUI programs, so you can make batch and offline console installations.
But sometimes I have found a strange behavior with several installers when requesting (via -?
, -help
... etc) their usage syntax: they open a new console (cmd
) windows, show (quickly) syntax and parameters... and close again to fast, so the user doesn't have time to read anything.
Example: The Bitvise SSH Installer (trial version available). I request syntax as its docs says :
BvSshServer-Inst.exe -?
A new cmd console opens saying things like:
This program will install Bitvise SSH Server 6.07
on the machine it is being run on.
... blah blah blah
... and the window closes again. I don't have time to read anymore.
I have seen this strange behavior on Windows 7, but not on Windows XP (tested on three machines).
Why is this happening?
How could it be solved/workarounded?
NOTE:
- When accessing to my machine via remote console (tested with SSH remote console) things go OK (I presume telnet would get it working too, but I have not tested it):
d:\Installer\>BvSshServer-Inst.exe -? | more
This program will install Bitvise SSH Server 6.07
on the machine it is being run on.
Bitvise SSH Server is an SSH2 server for Windows 2000 or newer, including
the latest Windows 8.1 and 2012 R2. Please see www.bitvise.com/ssh-server
for more information.
This program must be run by a user with administrator privileges. If run
without command line options, installation will be performed in interactive
mode. If run with command line options without the '-interactive' option,
installation will be performed in unattended mode.
Usage:
BvSshServer-Inst -installDir=directory OR -defaultSite OR -site=site-name
[-force OR -abortOnWarning[=warning-list-or-mask]
[-acceptEULA] [-interactive] [-noRollback]
[-activationCode=activation-code-hex]
[-keypairs=keypairs-file]
[-settings=settings-file]
[-siteTypeSettings=fileName]
[-startService]
[-startBssCtrl]
NOTE2:
- These commands do not solve the issue neither:
start "BvSshServer-Inst.exe -? | more"
cmd /k "BvSshServer-Inst.exe -? | more"
BvSshServer-Inst.exe -? | more > Syntax.txt
BvSshServer-Inst.exe -? > Syntax.txt
BvSshServer-Inst.exe -? | more 2> Syntax.txt
The answer is correct. It has solved the problem. I presume that remote SSH execution of the installer works because I am loging with an administrator's account. Thanks. – Sopalajo de Arrierez – 2014-07-21T01:11:46.867
"I presume that remote SSH execution of the installer works because I am loging with an administrator's account." -- Yeah, that was my thought too. But you are welcome. :-) – Anaksunaman – 2014-07-22T07:18:42.293