InstallShield
Setup.exe命令行参数Command-Line Parameters
Setup.exe文件的InstallShield可以接受许多命令 行参数。使用这些参数,管理员可以指定安装位置,是否要重新启动系统,或是否显示安装过程。
参数说明
================================================
/uninst
卸载
Setup.exe /uninst
================================================
/removeonly
卸载,按照欢迎和修复对话框上的设置来
Setup.exe /removeonly
================================================
/r
记录安装操作,建立成iss应答文件,可 在使用静默安装命令/s
Setup.exe /r
Setup.exe /r /f1”c:\temp\my-answer-file.iss”
================================================
/s
用先前建立的iss应答文件静默安装。一般情况下默认会建 立在Windows目录下(%windir%)(C:\Windows)
Setup.exe /s
Setup.exe /s /SMS
Setup.exe /s /f1”c:\temp\my-answer-file.iss”
Setup.exe /s /f1”c:\temp\my-answer-file.iss” /f2”c:\temp\my-log-file.iss”
================================================
/f1
指定一个替代响应文件
名称和路径在默认情况下, / s将会期待
在同一目录中的Setup.iss
安装可执行文件用/ r将创建
Setup.iss在Windows目录(%windir%).
Setup.exe /r /f1”c:\temp\my-answer-file.iss”
Setup.exe /s /f1”c:\temp\my-answer-file.iss”
================================================
/f2
指定一个替代日志文件的名称
和路径,默认的日志文件将被
创造在同一目录。
文件的名称
Setup.log.
Setup.exe /s /f2”c:\temp\my-log-file.iss”
Setup.exe /s /f1”c:\temp\my-answer-file.iss” /f2”c:\temp\my-log-file.iss”
================================================
/SMS
Instructs a silent setup not to release
the current session until the installation
is complete. Without this switch a silent
installation will immediately appear
complete and run in the background.
Use this switch to have any additional
installations or script actions wait for
installation to complete (such as in a
batch file). The parameter was
introduced to support MS Systems
Management Server which would
temporarily map a drive during
installation to access source files (where
it would immediately complete, and
SMS would unmap the drive to the
source files before the installation was
complete.)
Setup.exe /s /SMS
Setup.exe /s /SMS /f1”c:\temp\my-answer-file.iss”
Setup.exe /s /SMS /f1”c:\temp\my-answer-file.iss” /f2”c:\temp\my-log-file.iss”
================================================
/m
Generate a .MIF file (used by SMS and
some other management solutions to
report status information).
Setup.exe /m”MyMIF”
================================================
/m1
Specifies the serial number to be written
to a .MIF file (used with /m parameter)
Setup.exe /m”MyMIF” /m1”1111-2222-”
Setup.exe /m”MyMIF” /m1”1111-2222-” /m2”ENU”
================================================
/m2
Specifies the locale string to be written
to a .MIF file (used with /m parameter)
Setup.exe /m”MyMIF” /m2”ENU”
Setup.exe /m”MyMIF” /m1”1111-2222-” /m2”ENU”
================================================
/d
Debug InstallScript portion of the setup
with the InstallScript debugger
(ISDbg.exe). This is intended for setup
authors to troubleshoot a setup and not
for admins- the action requires a
setup.dbg file to be available.
Setup.exe /d”<path to folder containing setup.dbg>“
Setup.exe /v”ISSCRIPTDEBUG=1 ISSCRIPTDEBUGPATH=\”<path to folder containing
setup.dbg>\”“
================================================
/f
Specify alternative compiled script.
Setup.exe looks for a compiled script
file named Setup.inx, this parameter
may be used to specify a different name
for the compiled script file. Note that in
earlier versions of InstallShield
(InstallShield - Windows Installer
Edition), this parameter served to
initiate a repair of the installation.
Setup.exe /f”AlternateSetup.inx”
================================================
/L
Specifies the language for the setup for
those setups that support multiple
languages. Language must be identified
by decimal (LCID).
Setup.exe /L1031
Setup.exe /L0007
================================================
/delayedstart
Delay initialization of the installation.
With this parameter, specify the amount
of time (in seconds) by which
initialization of the installation is to be
delayed after Setup.exe is launched.
Setup.exe /delayedstart:10
Setup.exe /s /delayedstart:900
================================================
/deleter
Do not clone a second Setup.exe
process when debugging. By default,
Setup.exe clones a second process so
that it properly uninstalls applications
from machines on which no InstallScript
installation had previously been run.
Use this option when debugging a DLL
function that is called from your own
authored installation script.
Setup.exe /deleter
================================================
/extract_all
Extract a package's files but do not run
the setup.
Setup.exe /extract_all:”c:\temp”
================================================