Preparing the ControlThe ActiveX control must be packaged as an Installer Package (.msi) file instead of as a standard Internet Explorer cabinet (.cab) file. The .msi file can be created by using Visual Studio Installer. For the ActiveX control to be listed properly in the Active Directory, it must be set up to register through the .msi file instead of registering automatically.
To create the installation package, follow these steps:
- Add the control to the Visual Installer package. To do this, click Add Files on the Project menu, and add your compiled control file to the project.
- Determine the CLSID. To do this, either use the OLE View tool that ships with Microsoft Visual Studio, or look it up in the registry.
- Open the Target Machine/Associations section of the project.
- Under COM Object, add the control CLSID.
- Under Type Libraries, add the control type library ID. If you are using a Microsoft Visual Basic (VB) control, it is the same as the CLSID by default.
- Continue packaging the control as you normally would (that is, add any additional files and registry entries) by using Visual Installer.
- Place the .msi file for the control on a public share on the network.
Publishing the ControlAfter the MSI has been created, the Active Directory must be made aware of the control. The control must be added as a published control in the user portion of a policy for the appropriate Organizational Unit (OU). After the control has been published properly, you should see it in Add/Remove programs for any of the users in the OU.
After you have prepared the control and confirmed that the control can be seen in Add/Remove programs, you need to set up a registry entry in Windows 2000 that causes Internet Explorer to check the Active Directory for an installation package for the control.
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
ID articolo: 280579 - Ultima revisione: 22 set 2011 - Revisione: 1