![]()
|
InstallShield 2010
There are many properties that can be set during an installation. The following tables list most of them with their functions and, in many cases, the syntax needed to put these properties into action. Many of the properties can be set from within InstallShield, while others are initialized by the Windows Installer service at run time.
Note
By default, Windows Installer writes the final value of every Windows Installer property contained in your project to a log file generated by launching MsiExec with the /L argument. Starting with Windows Installer version 2.0, you can prevent certain properties (such as those containing passwords) from being written to the log file by creating a property called MsiHiddenProperties in the Property Manager and setting its value to a semicolon-delimited list of property names. For more information about this property, see MsiHiddenProperties in the Windows Installer Help Library.
Any of the properties that are with all-uppercase names can be set at the command line. Properties with all-uppercase names are called public properties. The following lists are organized according to the functions of the properties. Each table has a brief description of the kinds of properties it contains.
The following categories of Windows Installer properties are described in this topic. Click a link to go directly to a category.
Note
Do not confuse installer properties with path variables, which are surrounded by angle brackets (<>). While they both represent directories, you can use Windows Installer properties at run time, but path variables are used to point to source files only during setup design and at build time.
Special folder properties are those properties that define where files are stored or installed on the target system.
To use a folder property in your setup, enclose it in square brackets: []. For example, to install a component to a Bin folder under the default destination folder, enter [INSTALLDIR]Bin in the components Destination Folder property.
| Property Name |
Description |
|---|---|
| INSTALLDIR |
This property contains the default destination folder for the files in your features and components. See Setting the Default Product Destination Folder (INSTALLDIR) for more information. INSTALLDIR is available directly as a variable in your InstallScript code. |
| This property stores the path to Setup.exe. For example, if the path to Setup.exe is C:\MySetups\MyApp\Setup.exe, the value of SETUPEXEDIR is C:\MySetups\MyApp. |
|
| SOURCEDIR |
This property stores the folder where the running .msi file is located. |
| TARGETDIR |
The TARGETDIR property is the location where the Windows Installer package is copied (and its data files uncompressed) during an Administrative installation. In an InstallScript MSI project, this value is represented by the InstallScript MSI_TARGETDIR variable. |
The following section provides information on feature installation properties, with which the end user can specify how features should be installed.
| Property Name |
Description |
|---|---|
| ADDDEFAULT |
The ADDDEFAULT property stores a list of features, separated by commas, that are to be installed in their default configuration. Users can install all features in their default configuration by setting the value of this property to ALL. |
| ADDLOCAL |
This property stores a list of features, separated by commas, that are to be installed locally. Each feature has a Remote Installation property that determines whether features selected for installation are to be installed locally or run from the source medium. |
| ADDSOURCE |
This property stores a list of features, separated by commas, that are to be run from the source medium. If this property is set to ALL, all the features will run from the source medium. |
| ADVERTISE |
This property stores a list of features, separated by commas, that are to be advertised. |
| REINSTALL |
This property stores a list of features, separated by commas, that are to be reinstalled. If REINSTALL is set to ALL, all of the features that are already installed on the users system will be reinstalled. |
| REINSTALLMODE |
This property contains a string of letters that specify the reinstall type. These options correspond to the values available for the Msiexec.exe /f command-line parameter. For more information on this property, see REINSTALLMODE Property in the Windows Installer Help Library. REINSTALLMODE is always set in conjunction with REINSTALL. |
| ReinstallModeText |
This property contains the reinstallation options that will be set when the user selects Repair in the MaintenanceType dialog. The value of ReinstallModeText is passed as an argument to the control event ReinstallMode, which accepts the same options that are available for the REINSTALLMODE property. ReinstallModeText is not a predefined Windows Installer property. Nonetheless, it is provided in the Property Manager for every new project, with a default value of omus, for use in the control event described above. |
| REMOVE |
This property stores a list of features, separated by commas, that will be removed. If REMOVE is set to ALL, all features will be removed. |
| COMPADDLOCAL |
This property stores a list of component IDs, separated by commas, that are to be installed locally. The feature for the component that takes up the least amount of disk space will be installed. |
| COMPADDSOURCE |
This property stores a list of component IDs, separated by commas, that are to be run from the source medium. The feature for the component that takes up the least amount of disk space will be installed. |
| PATCH |
When installing a patch, this property contains the full path to the patch package. |
The following section contains information on various other configurable properties.
| Property Name |
Description |
|---|---|
| ACTION |
This property specifies which sequence to perform (installation, advertisement, or administration). Possible values are INSTALL, ADVERTISE, and ADMIN. The ACTION property is automatically set based on the command line used to launch the installation. |
| ALLUSERS |
Specifies whether Windows Installer should attempt to perform a per-machine or per-user installation. If the value of ALLUSERS is set to 1, Windows Installer attempts a per-machine installation. For per-machine installations, configuration information such as shortcuts and registry entries are stored in the All Users profile:
This property is set to 1 by default in Basic MSI and InstallScript MSI projects. To learn more, see Per-User vs. Per-Machine Installations. If the value of ALLUSERS is not set or it is an empty string (), Windows Installer performs a per-user installation, and the configuration information is stored in the users personal profile. If the value of ALLUSERS is set to 2, Windows Installer attempts to perform a per-machine installation on Windows Vista systems. On earlier platforms, if the user has administrative privileges, Windows Installer attempts to perform a per-machine installation; otherwise, Windows Installer performs a per-user installation.
This property is set to 1 in InstallScript MSI projects to help avoid ALLUSERS-related issues when the installation is run silently. The property can be overridden with the SdCustomerInformation or SdCustomerInformationEx dialog functions in InstallScript MSI projects.
ALLUSERS has no effect on InstallScript variables like FOLDER_PROGRAMS. ALLUSERS has no effect until the Execute sequence runs. |
| ARPAUTHORIZEDCDFPREFIX |
This property stores the URL for the update channel of the application. |
| ARPCOMMENTS |
This property contains the comments about this product that are displayed in Add or Remove Programs. This value is set in the ARP Comments setting in the General Information view. You should provide a string entry to facilitate globalizing your installation. |
| ARPCONTACT |
This property contains support contact information, such as an email address or a telephone number. This value is set in the Support Contact setting in the General Information view. You should provide a string entry to facilitate globalizing your installation. |
| ARPINSTALLLOCATION |
This property stores the fully qualified path to the applications primary folder. You can set ARPINSTALLLOCATION to the value of INSTALLDIR with a custom action of type Set a property. |
| ARPNOREPAIR |
If this property is set to 1, no Repair button will be displayed in the Programs Wizard. |
| ARPREADME |
Holds the fully qualified path or the URL for the products Readme file. This value is set in the Read Me setting in the General Information view. You should provide a string entry to facilitate globalizing your installation. |
| ARPSIZE |
This property stores the estimated size, in kilobytes, of the application. |
| ARPSYSTEMCOMPONENT |
Set this property to 1 to keep your program from appearing in Add or Remove Programs. |
| ARPURLINFOABOUT |
This property stores the URL for the applications home page or the publishers home page. This value is set in the Publisher/Product URL setting in the General Information view. You should provide a string entry to facilitate globalizing your installation. |
| ARPURLUPDATEINFO |
This property stores the URL for update information on your application. This value is set in the Product Update URL setting in the General Information view. You should provide a string entry to facilitate globalizing your installation. |
| ARPNOMODIFY |
Setting this property prevents the product from being modified from Add or Remove Programs. |
| ARPNOREMOVE |
Setting this property prevents the product from being removed through Add or Remove Programs. |
| AVAILABLEFREEREG |
This property allows you to set the amount of additional free registry space, in kilobytes, required by your application. |
| CCP_DRIVE |
This property holds the root path on the installation disk for any of the qualifying products for a competitive upgrade. |
| DISABLEADVTSHORTCUTS |
Setting this property disables the creation of advertised shortcuts. |
| DISABLEMEDIA |
This setting prevents the installer from adding media information to the source list. |
| DISABLEROLLBACK |
Set this property to 1 to stop the installer from creating a rollback script that will save copies of changed or deleted files during the installation process. |
| EXECUTEACTION |
This property sets the top-level action initiated by the ExecuteAction action. |
| EXECUTEMODE |
This property sets the mode of execution performed by the installer. The value None means that no changes are made to the system. The default value, Script, means that all changes made to the system are run through a script execution. |
| INSTALLLEVEL |
This property holds a value that corresponds to the values of the features. If the level of features to be installed is less than or equal to the INSTALLLEVEL property, then a feature is installed. This is primarily used for different setup types, such as Typical or Custom. |
| LOGACTION |
List of action names, separated by semicolons, that will be logged. |
| MSIINSTALLPERUSER |
This property indicates that the Windows Installer should install the package for only the current user: This property is available with Windows Installer 5 and on Windows 7 or Windows Server 2008 R2. Earlier versions of Windows Installer and Windows ignore this property. For more information, see the following:
|
| Privileged |
This property will run an installation with elevated privileges if the user is an administrator or if the application is an administrator-assigned application. |
| PROMPTROLLBACKCOST |
This property specifies what will happen if there is insufficient disk space to continue the installation. Depending on the user interface level, the rollback could happen automatically, without any input from the user, or it could ask the user to continue with rollback disabled. |
| PRIMARYFOLDER |
The folder that you specify with this property will be the primary folder for the installation. The path to this folder will be used to determine the values for the PrimaryVolumePath property, the PrimaryVolumeSpaceAvailable property, the PrimaryVolumeSpaceRequired property, and the PrimaryVolumeSpaceRemaining property. |
| REBOOT |
This property allows you to force or suppress a reboot after the installation completes. Possible values are: |
| ROOTDRIVE |
In Administration mode this property sets the default drive to the first writable network drive found. In all other modes, this property sets the default drive to the writable local drive with the most disk space available. |
| SCRIPTFILE |
This property defines the location of the script file that contains all operations executed during the installation. |
| SEQUENCE |
This property specifies an .msi database table that lists the order in which the actions in the table will run. |
| SHORTFILENAMES |
In Administration mode, this property may be set to indicate that only short file names should be used. |
| TRANSFORMS |
This property stores a list of transforms to be applied to an MSI database. These transforms can be set only in Installation and Advertisement mode. The syntax for this property, if you are applying a transform to two tables, is as follows: c:\transforms\trans1;:trans2. Note that transforms are applied in the order that they appear in the string. |
| TRANSFORMSATSOURCE |
By setting this property to 1, you are specifying the installer to look for the transforms at the installation source. |
| LIMITUI |
Setting this property limits the user interface level at basic. This is useful if you do not create a custom user interface to interact with the installers built-in UI. |
| DefaultUIFont |
This property should be set to one of the predefined styles found in the TextStyle table in order to specify your default font. If this property is not set, the installer will use the system font, which may disrupt your formatting. |
The following section contains information about input taken from the end user. Such input can include the end users name, company, or language.
Information on product-specific properties that can be set in the Property table is listed below. Examples of these types of properties include technical support numbers, product name, and serial number.
The following properties hold the fully qualified path to many of the folders on the end users system. Many of these properties can be used directly in your script, without having to call MsiGetProperty.
The following properties are set by the installer at run time. They refer to environment variables on the target system.
The following properties are set by the installer at run time and store settings on certain hardware profiles for the end users system.
To use Windows Installer properties to detect the presence of a virtual machine and determine the type of virtual machine, you first need to create a custom action that calls the ISDetectVM function in the SetAllUsers.dll file. For instructions, see Detecting Whether the Installation Is Being Run on a Virtual Machine.
The custom action sets the following Windows Installer properties at run time:
The following properties are set by the installer at run time. The values of these properties have to do with the status of the installation.
| Property Name |
Description |
|---|---|
| Date |
This property holds the current date. |
| Time |
This property holds the current time. |
These properties contain data related to the InstallScript engine.
These properties apply to version checking for MDAC.
|
|
Copyright Information | Contact Acresso Software |