PreviousNext
Macrovision

ALLUSERS

InstallShield 2008 ยป InstallScript Language Reference

Project-Specific

Project

This information applies to InstallScript projects.

The ALLUSERS system variable is the key to installations that allow installing the application to the current user or all users on the target system. The value of ALLUSERS determines the following:

ALLUSERS has no effect on the registration of COM .dll files.

The first time the installation is run, ALLUSERS is automatically initialized to FALSE if the target operating system is Windows NT 4, 2000, XP, or later and the user is not an administrator or power user, or to a non-zero value otherwise. If ALLUSERS is initialized to FALSE, assigning it a value in the script has no effect; otherwise, setting ALLUSERS to a non-zero value calls ProgDefGroupType(COMMON), and setting ALLUSERS to FALSE calls ProgDefGroupType(PERSONAL). (The reverse is not true; that is, calling ProgDefGroupType has no effect on the value of ALLUSERS.)

If the installation is run from Add or Remove Programs in the Control Panel, ALLUSERS is automatically initialized to the same value it had when the installation first ran. (More technically, it is initialized to the value of the AllUsers keyname that the installation created in <DISK1TARGET>\Setup.ini when it first ran.) If the installation is run again from the source media, ALLUSERS is automatically initialized as follows: if the application was previously installed to the same individual user, ALLUSERS is initialized to FALSE; otherwise, it is initialized to a non-zero value. (More technically, if the registry key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\<INSTANCE_GUID> exists, ALLUSERS is initialized to FALSE.)

For an example of an installation project that allows installing the application to the current user or all users on the target system, see the sample project in the ALLUSERS Sample Project folder. This folder is in the SamplesPro folder of your InstallShield Program Files folder. The default location is C:\Program Files\Macrovision\IS2008\SamplesPro.




Copyright Information | Contact Macrovision