Msistuff.exe is a configuration utility for Setup.exe, the bootstrap executable for Microsoft® Windows® Installer version 3.0. Msistuff provides the user with the ability to configure certain resources within setup.exe. Setup.exe uses the values of these resources to download and install Windows® Installer packages from the web.
Thus, using Msistuff.exe, anyone can quickly configure setup.exe to download and install a package of their choice from the web without modifying or recompiling setup.exe.
The sample can be built by running the following command from a Platform SDK build environment window:
nmake
In order to build the sample clean, the following commands should be used:
nmake clean
nmake
Syntax
msistuff setup.exe option {value}
If no data is specified following an option, that resource is removed.
Command Line Parameters
Msistuff.exe uses the following case-insensitive command line options. A slash delimiter may also be used in place of a dash. If an option is listed multiple times, only the last occurrence is used.
Option |
Resource ID |
Description |
no options specified |
|
Display configurable resources in Setup.exe. |
-u |
ISETUPPROPNAME_BASEURL |
Set BaseURL, the base URL location of Setup.exe. If no value is present, the location of Setup.exe defaults to removable media. Only URL based installs are subject to a check with WinVerifyTrust. The trailing slash on the URL is optional. This option may be omitted. |
-d |
ISETUPPROPNAME_DATABASE |
Set Msi, the name of the .msi file. This is a relative path to the .msi file in relation to the location of the Setup.exe program. This option is required if the -m option is not specified. The -d and -m options are mutually exclusive. They cannot both be specified. |
-m |
ISETUPPROPNAME_PATCH |
Set Msp, the name of the .msp file. This is a relative path to the .msp file in relation to the location of the Setup.exe program. This option is required if the -d option is not specified. The -m and -d options are mutually exclusive. They cannot both be specified. |
-n |
ISETUPPROPNAME_PRODUCTNAME |
Set Product Name, the name of the product. This provides the name used in the banner text for the downloaded user interface. This option may be omitted. If omitted, the default is "the product". |
-o |
ISETUPPROPNAME_OPERATION |
Specify the type of operation to perform. The valid values are INSTALL, MINPATCH, MAJPATCH and INSTALLUPD. For additional information on these options, see Internet Download Bootstrapping. |
-v |
ISETUPPROPNAME_MINIMUM_MSI |
Set Minimum Msi Version, the minimum version of Windows® Installer required on the computer. If the minimum version of the Windows® Installer is not present on the machine, the update package is installed to upgrade the Windows® Installer. The value of this property has the same format as the PID_PAGECOUNT value. See Page Count Summary Property. The value must be at least 200, the value for the Windows® Installer version 2.0. This option is required. |
-i |
ISETUPPROPNAME_UPDATELOCATION |
The base URL location of Windows® Installer update package. If this value is missing, the location of the update package defaults to the location of Setup.exe. This option may be omitted. |
-w |
ISETUPPROPNAME_UPDATE |
Set to the name of the Windows® Installer update package. This is a relative path to the location specified by ISETUPPROPNAME_UPDATELOCATION. This option is required. |
-p |
ISETUPPROPNAME_PROPERTIES |
Set the PROPERTY=VALUE strings. These are the PROPERTY=VALUE pairs to include on the command line. This option may be omitted. This option cannot be listed multiple times, and it must be listed last on the command line. All of the command line following -p is considered as a part of the {value}. |
Remarks
Windows® Installer 3.0 redistributable is an update package instead of InstMsi thereby new resource set supported by MsiStuff.exe of Windows® Installer 3.0 SDK should be used to configure Setup.exe bootstrapper used to install Windows® Installer 3.0.