09.12.2012 Views

InstallShield 2012 Spring Express Edition User Guide

InstallShield 2012 Spring Express Edition User Guide

InstallShield 2012 Spring Express Edition User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• /b : Cache installation locally<br />

• /debuglog : Generate a log file for debugging<br />

• /w : Wait<br />

Passing Parameters to the .msi File Within Setup.exe<br />

Chapter 27: Command-Line Tools<br />

Setup.exe<br />

If you include Setup.exe as part of your installation, you may need to pass command-line parameters to<br />

the .msi package stored within Setup.exe. To pass arguments to the .msi file, use the /v option. Once you<br />

specify this option, you can list any of the supported parameters that can be passed to Msiexec.exe. For<br />

example, to create a verbose log of the installation, enter the following:<br />

Setup.exe /v"/l*v \"c:\My Log Files\test.log\""<br />

There are a few special formatting rules that you need to follow when passing a parameter in this way.<br />

First, you need to place a backslash (\) in front of any quotation mark that resides within existing quotes.<br />

For example, the command line above contains the following: v"/l*v \"c:\My Log Files\test.log\".<br />

Because the path to the log file is a long path, you need to use quotes. However, since you need to have<br />

quotes around the complete argument, the command-line statement fails if you do not use the backslash<br />

in front of all internal quotes.<br />

Another formatting rule dictates that there cannot be a space between the command-line option (/v) and<br />

the arguments that you are passing, as illustrated in the example above.<br />

In addition, if you are passing multiple parameters using the /v option, you need to separate them with a<br />

space—for example:<br />

Setup.exe /v"/l*v \"c:\My Log Files\test.log\" /qn"<br />

This command creates a log file and runs the installation silently.<br />

As an alternative, you can use the /v option multiple times at the command line, once for each argument,<br />

as in the following example:<br />

Setup.exe /v"/l*v \"c:\My Log Files\test.log\"" /v"/qn"<br />

Running Setup.exe Silently<br />

If you do not want the Setup.exe file to display a progress bar when it launches, you can use the /s<br />

command-line parameter. For example, if you enter the following command-line statement, Setup.exe<br />

launches, but the user interface is not displayed:<br />

Setup.exe /s<br />

If you want the .msi setup to run silently as well, you need to pass the /qn command-line parameter<br />

through Setup.exe using the /v parameter—for example:<br />

Setup.exe /s /v/qn<br />

Note: If your installation is password protected, you must also pass the /p parameter.<br />

Specifying a Password from the Command Line<br />

You can specify a password for a password-protected setup by using the /p parameter. If you run a<br />

password-protected setup in silent mode, you must specify the password from the command line or the<br />

installation will fail.<br />

<strong>InstallShield</strong> <strong>2012</strong> <strong>Spring</strong> <strong>Express</strong> <strong>Edition</strong> <strong>User</strong> <strong>Guide</strong> ISE-1900-UG00 681

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!