Therefore, the InstallScript custom action exhibits per-user behavior. This could result in synchronization problems between the Windows Installer property and the InstallScript variable. The InstallScript variable cannot be changed.
Per-machine InstallScript actions are not possible. Per-machine InstallScript actions fail. Immediate, before CustomerInformation dialog or end user selects to install per user. The installation fails during UI sequence, and per-machine InstallScript custom actions fail.
If the resulting InstallScript variable is 0, InstallScript custom actions are used in a per-user context. If the resulting InstallScript variable is 1, InstallScript custom actions are used in a per-machine context. The root key under which the application uninstallation key is created. The value of the DISK1TARGET system variable which specifies the path to the folder in which copies of certain installation files are placed to enable maintenance installations and uninstallation.
You can also set these properties using the following methods:. During a per-machine installation, the Windows Installer requires elevated privileges, and it directs files and registry entries to per-machine locations. If User Account Control UAC is available on the target system, a per-machine installation typically prompts for consent or credentials, depending on the access level of the user.
During a per-user installation, the Windows Installer does not prompt for credentials, and it redirects files and registry entries to per-user locations. Custom actions that have an in-script execution setting of deferred in system context are used to perform an action with the rights granted to the LocalSystem account on Windows, since the Windows Installer service runs in the system context. Actions not marked as deferred in system context run with user impersonation and have the rights that the user who launches the installation has.
When a per-user installation that is, one where ALLUSERS is not set is run, deferred-in-system-context actions run in the same context in which normal deferred or immediate custom actions run, which is with user impersonation. This can potentially cause a run-time issue with the custom action in the following circumstances:. While this may not be an issue with Windows XP or earlier versions of Windows, Windows Vista and later do not give users full administrator privileges by default.
Per-machine installations are generally easier to manage than per-user installations. If you configure your installation so that it can be installed per user without administrative privileges, you may want to consider changing the value of the ALLUSERS property or removing this property from your project.
Use the Show Per-User Option setting in the General Information view to specify whether you want to give end users the option of installing your product for all users or for only the current user. Available options for the Show Per-User Option setting are:. They refer to environment variables on the target system. This property is set by the installer at installation and is only set if the user has administrative privileges.
This property stores the name of the computer that the installation is running on. This property stores the name of the user performing the installation. If an operating system service pack is installed, this property stores the numeric value for that update. This property is set when Shared Windows is being used on the target system. This property is set by the installer during initialization if the target system supports feature advertisement.
This property is automatically set on Windows 98 or later, or on earlier systems if Internet Explorer 4. This property stores the default language identifier for the target system. This property is set by the installer at initialization if the target system is a server with Windows Terminal Server. This property is set by the installer at initialization if the target system supports true type font collections TTC. This property stores the version number of Windows 95 and 98 operating systems as an integer.
Version9X is not set on Windows NT-based systems. This property stores a version number of the database used during the installation. This property stores the version number of Windows NT-based operating systems as an integer. This property stores the version number of a Windows NT-based operating system as an integer on bit systems only. This property stores the build number for the operating system being run.
This property stores the type of NT operating system being run on the target machine. This property is set to 1 if Microsoft BackOffice components are installed. In all other cases this property is not set. This property is set to 1 if Windows Datacenter Server is installed. This property is set to 1 if Windows Advanced Server is installed. This property is set to 1 if Microsoft Small Business Server is installed. This property is set to 1 if Microsoft Small Business Server is installed with the restrictive client license.
This property is set to 1 if the operating system is Workstation Personal. This property is set if the operating system supports. NET Framework assemblies. This property is set if the operating system supports Win32 assemblies. Hardware Properties Set by the Installer. The following properties are set by the installer at run time and store settings on certain hardware profiles for the end user's system.
This property stores the numeric value of the processor level, and it is only defined if the setup is running on an Alpha processor. This property is supported only with Windows Installer version 1.
This property stores the number of adjacent color bits for each pixel that is, the color depth of the user's monitor. For example, if the user's monitor is using colors, ColorBits is set to 8. This property stores the numeric value of the processor level, and it is defined only if the setup is running on an Intel bit processor. This property stores the installed amount of physical memory, in megabytes. The amount of available page file space, in megabytes, is stored in this property. PowerShell Properties.
The predefined PowerShell system search sets the value of this property if PowerShell is installed. This property lets you override the PowerShell execution policy on target systems with an appropriate one for your installation's PowerShell custom actions. Setting this property affects how the PowerShell custom actions that are run in your installation; however, it does not alter the policy of the target system.
Virtual Machine Properties. 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.
If the value of this property is 1, one of the following virtual machine environments is present:. This property indicates the type of virtual machine that is present on a target system. Available values are:. Status Properties Updated by the Installer. These properties identify the status of the installation. This property is set to 1 by the installer after a reboot triggered by the ForceReboot action. This property is set to 1 as soon as costing has begun and is set to 0 when costing is complete.
The installer sets the RollbackDisabled property whenever rollback has been disabled. This property is not set by default. This property is set to True if any of the drives that are targets for the install do not have enough disk space.
Otherwise, it is set to False. This property is set to True if any disk targeted during an installation does not have enough free disk space and if rollback capability is turned off.
It is set to False if all of the target disks have sufficient space. This property determines if features have been preselected, and if so, does not display the selection dialog.
This property stores a string representing the total amount of disk space required, in bytes expressed in units of bytes , by the currently selected features. The installer sets this property to a string representing the number of remaining bytes available on the system, in units of , if all selected features were to be installed.
This property stores the text string displayed to the user when an installation is resumed from a suspended setup. This property is set once changes to the system have taken place as a result of the installation process. This property is set if a file that is currently in use is overwritten.
Custom actions that check to see if a reboot is required will use this property. InstallScript Engine-Related Properties. This localizable property holds the message that is displayed to an end user who launches your.
SQL-Related Properties. This property identifies the type of authentication that you want to use to connect to the specified catalog. The following numbers are valid property values:. Specifies one or more SQL connections that should be skipped during installation or uninstallation. This property identifies the name of the SQL catalog to which you want to create a connection during the installation. Specifies not to use the stored SQL Server login information written in the registry.
This property identifies the password that should be used for server authentication. This property identifies the login ID that should be used for server authentication. MDAC Properties. Create and set this property to Yes if you want InstallShield to perform default version checking.
Date and Time Properties. Property Name. On Windows Vista and later systems, if User Account Control is enabled and the user does not have administrative privileges, the user must be able to provide administrative credentials in order to install the product.
On other systems, if the user does not have administrative privileges, the installation displays an error message and exits. Setting this property disables the creation of advertised shortcuts. List of action names, separated by semicolons, that will be logged. Per-User vs. F —To force a reboot when your installation is complete. S —To suppress any reboot except one caused by the ForceReboot action. R —To suppress any reboot caused by Windows Installer actions.
This property stores the numeric language ID for the product. This property retains the Internet address for technical support.
0コメント