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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Specifying Cache Location<br />

Chapter 27: Command-Line Tools<br />

Setup.exe<br />

To enable advanced Windows Installer functionality, such as feature advertisement and application<br />

repair, you can copy the installation to a location on the target machine. To do so, use the following<br />

syntax, including a fully qualified path:<br />

Setup.exe /b"C:\Storage\MyCachedPrograms\"<br />

Note: The installation will be cached at a subdirectory of the location specified. This subdirectory is named after the<br />

Package Code GUID of the installation. If there is a problem unpacking to that location, the installation will ask for an<br />

alternate location.<br />

This option can only be used for SingleImage, Custom, and WebDeployment builds.<br />

Generate a Log File for Debugging<br />

The /debuglog parameter lets you generate a log file for Setup.exe.<br />

To generate a log named <strong>InstallShield</strong>.log in the same directory as the Setup.exe file, pass just the<br />

command-line parameter. Note that this does not work if the Setup.exe file is in a read-only location.<br />

For example:<br />

Setup.exe /debuglog<br />

To specify the name and location of the log file, pass the path and name, as in the following example:<br />

Setup.exe /debuglog"C:\PathToLog\setupexe.log"<br />

Requiring Setup.exe to Wait<br />

Use the /w command line option to have Setup.exe wait until MsiExec.exe is finished before Setup.exe<br />

exits. In addition, the /w command also returns any return codes generated by MsiExec.exe.<br />

If you are using the /w option in a batch file, you may want to precede the entire Setup.exe commandline<br />

argument with start /WAIT. A properly formatted example of this usage is as follows:<br />

start /WAIT setup.exe /w<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 683

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

Saved successfully!

Ooh no, something went wrong!