Microsoft® Office XP Resource Kit

microsoft.com Home  
Microsoft
http://www.microsoft.com/office/ork  

    Office Resource Kit
    Toolbox
    Getting Started
    Deployment
    Maintenance
    Worldwide Deployment
    Messaging
    Site Index
    Glossary
Office Resource Kit / Deployment / Overview of Setup
Topics in this chapter
  Setup Components  
  Tasks Handled by Setup  
  Installations That Require Elevated Privileges  
 

Installations That Require Elevated Privileges

In Microsoft Windows NT 4.0 and Microsoft Windows 2000 environments, different groups of users have different levels of rights and permissions. In these environments, default users have limited access to system areas of the computer. Because Office XP Setup updates system files and writes to system areas of the Windows registry, you must have administrator rights to the computer to install Microsoft Office XP.

Users without administrator rights cannot install Office XP. To install Office on computers where users lack administrator rights, you must run Setup with elevated privileges. After Office is installed, users without administrator rights can run all installed features, including installing features on demand, provided the initial installation was performed in an elevated context.

Under Windows NT 4.0 and Windows 2000, power users cannot install Office XP without elevated privileges. Elevated privileges are not required under Microsoft Windows 98 or Microsoft Windows Millennium Edition because these operating systems consider each user an administrator of the computer.

There are four methods of elevating the Office installation:

  • Log on to the computer as an administrator and install Office XP.

  • Assign, publish, or advertise Office applications.

You use Windows 2000 software installation, a feature of IntelliMirror® management technology, to assign or publish Office XP. Under Windows NT 4.0 or Windows 2000, you can also log on to the computer as an administrator and run Setup with the /jm command-line option to advertise Office.

  • Set a Windows Installer system policy that allows all Windows Installer applications to run with elevated privileges.

  • Use Microsoft Systems Management Server in an administrative context to deploy Office.

Because all of the core Office XP products are installed as Windows Installer packages, any of the preceding methods grants users elevated privileges and allows them to install Office and any chained packages. When the initial installation is performed with elevated privileges, all subsequent installations — including install on demand and automatic repair of features — are also elevated.


Note   Under Windows NT 4.0, you cannot install the System Files Update merely by elevating the installation. Instead, you must log on to the computer with administrator rights when you begin the System Files Update installation, and log on again after the computer restarts to complete the installation. Alternatively, you can create a Systems Management Server script to elevate the installation.


Logging on as an administrator

You automatically install Office XP, the System Files Update, and the MUI Packs from the Office XP Multilingual User Interface Pack (MUI Pack) with elevated privileges if you log on to a computer with an account that has administrator rights. However, this method requires that all users have administrator rights or that an administrator visits every computer.

Under Windows 2000, you can also give users an administrator name and password and have them use the Run as command to install Office XP or the Multilingual User Interface Pack in an elevated context. If you create a shortcut to Setup.exe, you can include command-line options to customize the installation.

To create a shortcut to Setup.exe for users to run as administrators

  1. Create a shortcut to Office XP Setup.exe.

  2. Right-click the shortcut and then click Properties.

  3. On the Shortcut tab, enter your command line in the Target box.

To specify a custom INI file, use the /settings option; to apply a transform, use the TRANSFORMS property.

  • Select the Run as a different user check box, and then click OK.

You must distribute this shortcut with the domain, name, and password of an administrator account. The following procedure outlines the steps users must take.

To start Office XP Setup as an administrator (Windows 2000)

  1. Press SHIFT and right-click setup.exe and then click Run as.

  2. Click Run the program as the following user.

  3. Enter the user name, password, and domain of the administrator account.

Setting a Windows Installer system policy

You can enable elevated privileges on a user's computer by setting a Windows Installer system policy. The Always install with elevated privileges policy allows a user without administrator rights to install any Windows Installer package (with the exception of the System Files Update).


Note   You must set the Always install with elevated privileges policy both per computer and per user to enable elevated privileges for installing Office XP.


To enable elevated privileges by policy (Windows 2000)

  1. On the Start menu, point to Programs, point to Administrative Tools, and then click Active Directory Users and Computers.

  2. In the console tree, right-click the domain or organizational unit for which you want to set the policy.

  3. Click Properties, and then click the Group Policy tab.

  4. Select a Group Policy Object in the Group Policy Objects Links box and click Edit.

  5. Open the Local Computer Policy\Administrative Templates\Windows Installer folder.

  6. In the details pane, double-click the Always install with elevated privileges policy.

  7. In the Group Policy Property dialog box, enable the policy, select the check box to turn the setting on, and then click OK.

  8. Open the User Configuration\Administrative Templates\Windows Installer folder and repeat Steps 6 and 7.

Under Windows NT 4.0, you can use the System Policy Editor and Windows Installer policy template file (Instlr11.adm) to set the Always install with elevated privileges policy. You must set the policy for the computer and for each user. For more information about setting system policies in Office XP, see Understanding System Policies.

If you choose not use the Group Policy Editor or the System Policy Editor, you can specify the same setting on each computer by changing a value in the Windows registry.

To enable elevated privileges in the Windows registry

  1. On the Start menu, click Run and type regedit to open the Registry Editor.

  2. Find or create the following subkey in the Windows registry:

    HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer

  3. In the Installer subkey, set the value of AlwaysInstallElevated to 1.

  4. Find or create the following subkey in the Windows registry:

    HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Installer

  5. In the Installer subkey, set the value of AlwaysInstallElevated to 1.

  6. Repeat Steps 5 and 6 for each user of the computer.

When you install Office XP from the Office CD, installing features on demand requires administrator rights each time a feature is installed. This scenario is the only exception to persistent administrator rights after an initial installation with elevated privileges.

To allow users to install features on demand from the Office XP CD, you must set the Windows Installer system policy Enable user to use media source while elevated. For more information about installing from the Office XP CD or a customized copy of the compressed Office CD, see Distributing Office to Users' Computers.


Caution   When you set the Always install with elevated privileges or Enable user to use media source while elevated policy, any Windows Installer package installed by any user can make changes to system areas. This state can leave the computer vulnerable to viruses.


Assigning, publishing, or advertising Office XP

If all the computers in your organization run under Windows 2000, you can elevate the Office installation by using IntelliMirror technology to assign or publish Office XP and the MUI Packs. Because Windows 2000 already provides the necessary level of system files, the System Files Update is not required.

Alternatively, if you are running Windows NT 4.0 or if you are not using Windows 2000 software installation, you can advertise Office XP by logging on as an administrator and then running Setup with the /jm option. If you also include a Windows Installer transform (MST file) to customize the installation, use the /t command-line option to specify the MST file. For example:

setup.exe /jm proplus.msi /t office.mst

When you advertise Office XP in this way, Windows Installer shortcuts for each application appear on the Start menu, and a minimal set of core Office files and components is installed on the computer. When a user clicks a shortcut or opens a file associated with an Office application, Windows Installer runs with elevated privileges to install the application, regardless of how the user logged on. After Office is advertised, users can also run Setup from an administrative installation point and install Office with elevated privileges.

Note that Windows NT 4.0 does not support Windows Installer shortcuts without an updated version of the Windows shell. The updated shell is included with Internet Explorer 4.01 Service Pack 1 or later. Even without the updated shell and Windows Installer shortcuts, however, core Office files and components are installed on the computer, and Windows Installer considers the initial installation complete. Users can subsequently run Office XP Setup from the administrative installation point and install with elevated privileges.

Like Office XP, the MUI Packs in the Office XP Multilingual User Interface Pack are Windows Installer packages, and you can advertise them to grant users elevated privileges when installing them. However, you must be logged on as an administrator when you advertise a package. Because the System Files Update cannot be advertised, advertising Office XP on Windows NT 4.0 fully installs the System Files Update on the local computer when the update is required.

See also

For more information about assigning or publishing Office XP, see Using Windows 2000 Software Installation.

For more information about advertising Office, see Distributing Office to Users' Computers.

By using a Systems Management Server script, you can install Office in an elevated context. For more information, see the Microsoft Systems Management Server Web site at http://www.microsoft.com/smsmgmt/default.asp.


Top

 
© 2001 Microsoft Corporation. All rights reserved. Terms of use.
License