Microsoft KB Archive/321713

= HOW TO: Use Group Policy to Set Automatic Installation Options Based on File Name Extensions in Windows 2000 =

Article ID: 321713

Article Last Modified on 3/14/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition

-



This article was previously published under Q321713



IN THIS TASK
SUMMARY
 * Create a Distribution Point
 * Create a Group Policy Object
 * Publish a Package

REFERENCES



SUMMARY
This step-by-step article describes how to use a group policy to specify automatic installation options based on file name extensions in Microsoft Windows 2000.

You can use group policy to automatically install a published program when a user clicks a program file with which that published program is associated. You can publish a program distribution to users. When a user logs on to the computer, the published program is displayed in the Add/Remove Programs dialog box, and it can be installed from there.

NOTE: Windows 2000 group policy automated-program installation requires client computers that are running Windows 2000 or later.

back to the top

Create a Distribution Point
To publish or assign a computer program, you must create a distribution point on the publishing server. To do this, follow these steps:
 * 1) Log on to the server computer as an administrator.
 * 2) Create a shared network folder in which to place the Windows Installer package (.msi file) that you want to distribute.
 * 3) Set permissions on the share to allow access to the distribution package.
 * 4) Copy or install the Windows Installer package to the distribution point. For example, to distribute Microsoft Office XP, run the administrative installation ( setup.exe /a ) to copy the files to the distribution point.

back to the top

Create a Group Policy Object
To create a Group Policy Object (GPO) with which to distribute the software package, follow these steps:
 * 1) Start the Active Directory Users and Computers snap-in. To do this, click Start, point to Programs, point to Administrative Tools, and then click Active Directory Users and Computers.
 * 2) In the console tree, right-click your domain, and then click Properties.
 * 3) Click the Group Policy tab, and then click New.
 * 4) Type the name that you want to use for this policy (for example, Office XP distribution ), and then press ENTER.
 * 5) Click Properties, and then click the Security tab.
 * 6) Click to clear the Apply Group Policy check box for the security groups that you want to prevent from having this policy applied. Click to select the Apply Group Policy check box for the groups to which you want to apply this policy. When you are finished, click OK.

back to the top

Publish a Package
To publish a package to computer users, and to have it automatically installed when a user double-clicks a file with which that program is associated, follow these steps:  Start the Active Directory Users and Computers snap-in. To do this, click Start, point to Programs, point to Administrative Tools, and then click Active Directory Users and Computers. In the console tree, right-click your domain, and then click Properties. Click the Group Policy tab, select the group policy object that you want, and then click Edit. Under User Configuration, expand Software Settings. Right-click Software installation, point to New, and then click Package. In the Open dialog box, type the full UNC path to the shared folder that contains the Windows Installer package that you want. For example, \\file server\share\file name.msi.

IMPORTANT: Do not browse to the location. Ensure that you use the UNC path to the shared folder. Click Open.</li> Click Published, and then click OK. The package is listed in the right pane of the Group Policy window.</li> Right-click Software installation, and then click Properties.</li> Click the File Extensions tab, and then click the extension with which you want to trigger the automatic installation of the published package in the Select file extension list. For example, click .dot.</li> Click OK, and then close the Group Policy snap-in.</li> Click OK, and then quit the Active Directory Users and Computers snap-in.</li> Test the package. To do this, follow these steps.

NOTE: The following steps assume that you published Microsoft Word or Microsoft Office XP, and that you selected .dot in the Select file extension list when you configured the Group Policy.

The purpose of selecting .dot as the file extension that triggers the installation of the published package is for example purposes only. In this case, the .dot extension is not associated with another program and as such, will start the Office XP installation. <ol style="list-style-type: lower-alpha;"> Log on to a workstation that is running Windows 2000 Professional by using an account to which you published the package.</li> Click Start, point to Programs, point to Accessories, and then click WordPad.</li> Type test in the document window.</li> On the File menu, click Save As.</li> In the Save As dialog box, click Save.</li> Quit WordPad.</li> Double-click the My Documents folder to open it.</li> On the Tools menu, click Folder Options.</li> Click the View tab, click to clear the Hide file extensions for known file types check box, and then click OK.</li> <li>Right-click the saved document, and then click Rename.</li> <li>Type test.dot, and then press ENTER.</li> <li>Click Yes to confirm the changing of the file name extension.</li> <li>Double-click the Test.dot file.

The published program installation starts.</li></ol> </li></ol>

back to the top

<div class="references_section">