Tuesday, 21 June 2011

Installshield Setup.exe commandline parameters

Parameter
Action
/uninst
Uninstalls the product
Syntax:
Setup.exe /uninst
/removeonly
Also uninstalls the product, but depending upon how authored it may display the welcome/maintenance dialog.
Syntax:
Setup.exe /removeonly

/r
Record the installation to create an ISS answer file which may be used in a silent installation command
Syntax:
Setup.exe /r
Setup.exe /r /f1c:\temp\my-answer-file.iss
/s
Run the setup silently using a previously created ISS answer file (with the /r parameter).
Syntax:
Setup.exe /s
Setup.exe /s /SMS
Setup.exe /s /f1c:\temp\my-answer-file.iss
Setup.exe /s /f1c:\temp\my-answer-file.iss/f2c:\temp\mylogfile.iss
/f1
Specifies an alternative response file name and path; by default /s will look for setup.iss in the same directory as the setup executable and /r will create setup.iss in the Windows directory (%windir%).
Syntax :
Setup.exe /r /f1c:\temp\my-answer-file.iss
Setup.exe /s /f1c:\temp\my-answer-file.iss
/f2
Specifies an alternative log file name and path; by default the log file will be created in the same directory as the setup executable with the name setup.log.
Syntax:
Setup.exe /s /f2c:\temp\my-log-file.iss
Setup.exe /s /f1c:\temp\my-answer-file.iss/f2c:\temp\mylogfile.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 un-map the drive to the source files before the installation was complete.)
Syntax:
Setup.exe /s /SMS
Setup.exe /s /SMS /f1c:\temp\AnswerFile.iss
Setup.exe /s /SMS /f1c:\temp\AnswerFile.iss/f2c:\temp\mylogfile.iss
/m
Generate a .MIF file (used by SMS and some other management solutions to report status information).
Syntax:
Setup.exe /mMyMIF
/m1
Specifies the serial number to be written to a .MIF file (used with /m parameter)
Syntax:
Setup.exe /mMyMIF/m11111-2222-
Setup.exe /mMyMIF/m11111-2222-/m2ENU
/m2
Specifies the locale string to be written to a .MIF file (used with /m parameter)
Syntax:
Setup.exe /mMyMIF/m2ENU
Setup.exe /mMyMIF/m11111-2222-/m2ENU
/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 administrators since the action requires a setup.dbg file to be available for them.
Syntax:
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.
Syntax:
Setup.exe /fAlternateSetup.inx
/L
Specifies the language for the setup for those setups that support multiple languages. Language must be identified by decimal (LCID).
Syntax:
Setup.exe /L1031
Setup.exe /L0007
/s
Install silently. By default the silent installation is based on the response file called Setup.iss in the same directory.
(Response files are created by running Setup.exe with the /r option.) To specify an alternative file name or location of the response file, use the /f1 parameter.
Syntax:
Setup.exe /s /f1c:\temp\my-answer-file.iss
Setup.exe /s /f2c:\temp\my-log-file.iss
Setup.exe /s /SMS

1 comment:

  1. Thanks to Poornnimaa!! Here I got the solution.

    ReplyDelete