InstallShield 12 Express Edition
Like your compiled .msi file, Setup.exe to run silently. You can also pass parameters through Setup.exe to the included .msi file.can accept a limited number of command-line parameters. By using these parameters, you can specify which language you want your installation to run in and if you want
Setup.exe accepts the following command-line options, each of which is described below:
If you include Setup.exe as part of your installation, you may need to pass command-line parameters to the .msi package stored within Setup.exe. To pass arguments to the .msi file, use the /v option. Once you specify this option, you can list any of the supported parameters that can be passed to . For example, to apply a transform, enter the following:
Setup.exe /v"TRANSFORMS=\"C:\Transforms\My Transform.mst\""
There are a few special formatting rules that you need to follow when passing a parameter in this way. First, you need to place a backslash (\) in front of any quotation mark that resides within existing quotes. For example, the command line above contains the following: /v"TRANSFORMS=/"C:\Transforms\My Transform.mst\"". Because the path to the transform is a long path, you need to use quotes. However, since you need to have quotes around the complete argument, the command-line statement fails if you do not use the backslash in front of all internal quotes.
Another formatting rule dictates that there cannot be a space between the command-line option (/v) and the arguments that you are passing, as illustrated in the example above.
Finally, if you are passing multiple parameters using the /v option, you need to separate them with a spacefor example:
Setup.exe /v"TRANSFORMS=\"C:\Transforms\MyTransforms.mst\" /qn"
This command applies a transform and runs the installation silently.
If you do not want the Setup.exe file to display a progress bar when it launches, you can use the /s command-line parameter. For example, if you enter the following command-line statement, Setup.exe launches, but the user interface is not displayed:
If you want the .msi setup to run silently as well, you need to pass the /qn command-line parameter through Setup.exe using the /v parameterfor example:
Setup.exe /s /v/qn
If your installation is password protected, you must also pass the.
You can specify a password for a password-protected setup by using the /p parameter. If you run a password-protected setup in silent mode, you must specify the password from the command line or the installation will fail.
To run a password-protected setup silently, enter the following statement at the command line:
Setup.exe /s /v/qn /p"password"
You can define what mode you want your installation to run in by using the /a (Administrative), /j (Advertise), /x (Uninstall), or /f (Repair) parameters. Each of these options is explained in detail below.
When you run an installation in administrative mode, you can install an installation image to the network, which allows any one with access to that directory the ability to install that installation on their local machine with the privileges of the administrator who ran the administrative installation. No additional parameters are necessary for this option.
Advertisement is a type of "just-in-time" installation in which features are installed when they are requested from the installer and not installed immediately during installation. When you launch MsiExec.exe with the /j <package> option, the features are advertised on the end user's system, but not immediately installed. In most cases, the end user has the option to advertise features in the Custom Setup dialog. For information on the proper syntax for this parameter, see in the Windows Installer Help Library.
If you want to uninstall your installation from the command line without displaying the maintenance dialogs, you need to use the /x optionfor example:
No additional parameters are required.
When you launch an installation in repair mode, it makes sure that all portable executable (.exe, .com, .ocx, .tlb) and help (.chm and .hlp) files are present and uncorrupted. If the installation detects that one of these files is missing or corrupt, it attempts to repair the file. To launch an installation in repair mode from the command line, use the /f option. For information on the proper syntax for this parameter, see .
From the command line, you can specify the location of the Windows Installer engine to download for Web-deployable installations. To do so, use the following syntax.
To enable advanced Windows Installer functionality, such as feature advertisement and application repair, you can copy the installation to a location on the target machine. To do so, use the following syntax, including a fully qualified path:
The installation will be cached at a subdirectory of the location specified. This subdirectory is named after the Package Code GUID of the installation. If there is a problem unpacking to that location, the installation will ask for an alternate location.
This option can only be used for SingleImage, Custom, and WebDeployment builds.
Use the /w command line option to have Setup.exe wait until MsiExec.exe is finished before Setup.exe exits. In addition, the /w command also returns any return codes generated by MsiExec.exe.
If you are using the /w option in a batch file, you may want to precede the entire Setup.exe command-line argument with start /WAIT. A properly formatted example of this usage is as follows:
start /WAIT setup.exe /w