09.12.2012 Views

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Chapter 27: Command-Line Tools<br />

Setup.exe<br />

To run a password-protected setup silently, enter the following statement at the command line:<br />

Setup.exe /s /v/qn /p"password"<br />

Specifying the Installation Mode from the Command Line<br />

You can define what mode you want your installation to run in by using the /a (Administrative), /j<br />

(Advertise), /x (Uninstall), or /f (Repair) parameters. Each of these options is explained in detail below.<br />

Administrative<br />

When you run an installation in administrative mode, you can install an installation image to the<br />

network, which allows any one with access to that directory the ability to install that installation on their<br />

local machine with the privileges of the administrator who ran the administrative installation. No<br />

additional parameters are necessary for this option.<br />

Advertise<br />

Advertisement is a type of “just-in-time” installation in which features are installed when they are<br />

requested from the installer and not installed immediately during installation. When you launch<br />

MsiExec.exe with the /j option, the features are advertised on the end user’s system, but not<br />

immediately installed. In most cases, the end user has the option to advertise features in the Custom<br />

Setup dialog. For information on the proper syntax for this parameter, see Command-Line Options in<br />

the Windows Installer Help Library.<br />

Uninstall<br />

If you want to uninstall your installation from the command line without displaying the maintenance<br />

dialogs, you need to use the /x option—for example:<br />

Setup.exe /v/x<br />

No additional parameters are required.<br />

Repair<br />

When you launch an installation in repair mode, it makes sure that all portable executable (.exe, .com,<br />

.ocx, .tlb) and help (.chm and .hlp) files are present and uncorrupted. If the installation detects that one<br />

of these files is missing or corrupt, it attempts to repair the file. To launch an installation in repair mode<br />

from the command line, use the /f option. For information on the proper syntax for this parameter, see<br />

MsiExec.exe.<br />

Specifying the Windows Installer Engine Location from the Command Line<br />

From the command line, you can specify the location of the Windows Installer engine to download for<br />

Web-deployable installations. To do so, use the following syntax.<br />

Windows 9x MSI Engine<br />

Setup.exe /ua"http://www.installshield.com/msiengine20/InstmsiA.exe"<br />

Windows NT MSI Engine<br />

Setup.exe /uw"http://www.installshield.com/msiengine20/InstmsiW.exe"<br />

682 ISE-1800-UG01 <strong>InstallShield</strong> <strong>2012</strong> <strong>Express</strong> <strong>Edition</strong> <strong>User</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!