Monday, August 28, 2006

Reference: Setup.exe commands

Setup.exe Command Line Parameters

Special Installation Modes
* /a : Administrative installation
* /j : Advertise mode
* /x : Uninstall mode
* /uninst : Uninstall product (InstallScript MSI projects only)

Silent Installations
* /p : Specify password
* /r : Record mode (InstallScript MSI projects only)
* /s : Silent mode
* /f1 : Specify alternative response file name (InstallScript MSI projects only)
* /f2 : Specify alternative log file name (InstallScript MSI projects only)

SMS Data
* /m : Generate MIF file (InstallScript MSI projects only)
* /m1 : Specify serial number in MIF file (InstallScript MSI projects only)
* /m2 : Specify locale string in MIF file (InstallScript MSI projects only)

Download and Cache Locations
* /ua : Specify URL for InstMsiA.exe
* /uw : Specify URL for InstMsiW.exe
* /us : Specify URL to ISScript.msi
* /um : Specify URL to .msi package
* /b : Cache installation locally

Passing Data to the Installation
* /v : Pass arguments to Msiexec
* /z : Pass arguments to CMDLINE variable

Debugging
* /d : Debug InstallScript (InstallScript MSI projects only)
* /verbose : Generate verbose InstallScript engine log file (InstallScript MSI projects only)

Miscellaneous
* /f : Specify alternative compiled script (InstallScript MSI projects only)
* /h : Clone release to a temporary location and run from that location
* /L : Setup language
* /w : Wait
* /SMS : Wait (InstallScript MSI projects only)

Special Installation Modes
*/a : Administrative installation
*/j : Advertise mode
*/x : Uninstall mode
*/uninst : Uninstall product (InstallScript MSI projects only)

Silent Installations
*/p : Specify password
*/r : Record mode (InstallScript MSI projects only)

In order to run an InstallScript MSI project installation program in silent mode, one must first run Setup.exe with the /r switch to generate a response file, which stores information about the data entered and options selected by the user at run time. Running an InstallScript MSI installation program with the command Setup.exe /r displays all the run-time dialog boxes, and stores the data in a file called Setup.iss, created inside the system's Windows folder. To specify an alternative response file name and location, use the /f1 argument, described below. Basic MSI projects do not create or use a response file for silent installations.

*/s : Silent mode - For an InstallScript MSI project, the command Setup.exe /s runs the installation in silent mode, by default based on the responses contained in a 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 option, described below.

The command Setup.exe /s also suppresses the Setup.exe initialization window for a Basic MSI installation program, but does not read a response file. To run a Basic MSI product silently, run the command line Setup.exe /s /v/qn. (To specify the values of public properties for a silent Basic MSI installation, you can use a command such as Setup.exe /s /v"/qn INSTALLDIR=D:\Destination".)

*/f1 : Specify alternative response file name (InstallScript MSI projects only) - Using the /f1 argument allows one to specify where the response file is (or where it should be created) and what its name is, as in Setup.exe /s /f1"C:\Temp\Setup.iss". The /f1 switch is available both when creating a response file (with the /r option) and when using a response file (with the /s option).

*/f2 : Specify alternative log file name (InstallScript MSI projects only) - When running an InstallScript MSI project installation program in silent mode (using the /s argument), the log file Setup.log is by default created in the same directory as the response file. The /f2 argument allows one to specify an alternative log file location and file name, as in Setup.exe /s /f2"C:\Setup.log".

SMS Data
*/m : Generate MIF file (InstallScript MSI projects only) - The /m switch causes Setup.exe to generate an SMS Management Information Format (MIF) file. A typical command is Setup.exe */m"SampleApp". (Including the “.mif” file extension is not necessary.)
/m1 : Specify serial number in MIF file (InstallScript MSI projects only) - Using the /m1 parameter (along with /m) enables you to specify a serial number to be written to the MIF file. A typical command is Setup.exe /m"SampleApp" /m1"1234-5678".
*/m2 : Specify locale string in MIF file (InstallScript MSI projects only) - Using the /m2 parameter (along with /m) enables you to specify a locale string to be written to the MIF file. A typical command is Setup.exe /m"SampleApp" /m2"ENU".
*/b : Cache installation locally - In the Release Wizard, for a Downloader build, you can specify whether to cache the contents of a compressed package on the local system. With the /b argument, the user can specify the directory in which to cache the installation files, as in Setup.exe /b"C:\CacheDirectory".

Passing Data to the Installation
*/v : pass arguments to Msiexec - The /v argument is used to pass command line switches and values of public properties through to Msiexec.exe.
*/z : Pass arguments to CMDLINE variable - The /z argument is used to pass data to the InstallScript system variable CMDLINE, as in Setup.exe /z"My Custom Data", after which the variable CMDLINE would contain the string "My Custom Data".
*/verbose : Generate verbose InstallScript engine log file (InstallScript MSI projects only)
For an InstallScript MSI project installation program, you can create a verbose InstallScript-engine-installation log file using the /verbose argument followed by the path to the log file you want to create. A typical command is Setup.exe /verbose"C:\IS.log". The log file generated can help you troubleshoot errors in installing the InstallScript engine on a target system. The /verbose option requires a full path to the log file, and not a relative path.

8 Comments:

Anonymous Anonymous said...

Can someone answer a simple question for me? Why should I go with SMS vs going with a simpler ASP solution for my network? I have been looking at www.Paragent.com.

8:55 PM  
Anonymous Anonymous said...

SMS is more complicated and not as user friendly for level 1 IT people. Not sure if I can help with the Paragent question. I noticed that they are Open Source.

4:32 PM  
Blogger Lord LQQK at the WoodSmithy said...

Do you really want level1 IT people handling your software deployment? Most of them can barely tell you the difference between the computer and the monitor.

2:28 PM  
Anonymous Anonymous said...

Who knows where to download XRumer 5.0 Palladium?
Help, please. All recommend this program to effectively advertise on the Internet, this is the best program!

10:06 AM  
Anonymous Viagra Online said...

I was reading some of your posts, the majority of them are impressive, useful and to the point, thanks for sharing.

3:07 PM  
Anonymous Viagra without prescription said...

wait a second!! I do not understand the SMS data, it is a little bit different as I have studied it, I am so confused, I need a second opinion about it!!

9:57 AM  
Anonymous pharmacy said...

Nice thanks for share, I give basic technical support but I don't know to much about commands.

4:38 PM  
Anonymous KANSAS CITY MALL said...

Excellent post, fantastic job i like it. Your writing is very good. Thank you for the article, very worthwhile material.

12:30 AM  

Post a Comment

<< Home