Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a third party ActiveX Control that I want to package up in a msi so it can be deployed and registered via Group Policy. The goal being I don't want the end user to have to click through and install the ActiveX control in IE. I have the Cab file which contains (2) ocx files, (1) inf file, and (1) dll. How do I know get these installed and registered as an ActiveX in IE?

share|improve this question
    
What you really need for this is a well-cleaned up capture of what happens when an admin user installs the ActiveX control using a setup capture tool. It involves a file installed to "Downloaded Program Files" and a few IE settings that are crucial, unless this has changed in newer versions of Windows. –  Glytzhkof May 12 at 23:13

2 Answers 2

I haven't tried this, but I would have concerns about how an automated deployment of an ActiveX control would interact with Internet Explorer security. My gut feeling is "not very well". I'd be more inclined to configure policies to trust either the site using the control (if you're satisfied that it's safe to do so) or the control itself (which could be a little fiddly) and let the control come down in the normal manner.

share|improve this answer
1  
@mh: Nah-- it'll work fine. All an ActiveX installer does is place files on the hard drive and register them into the registry. I've automated exactly what the poster is talking about in the past. (It's exactly what the redistributable versions of things like the Flash Player installer do.) –  Evan Anderson Feb 12 '10 at 20:01
    
Ah, that's cool then. I'll withdraw my reservations. –  Darth Satan Feb 12 '10 at 20:03

What you're asking for is completely feasible. The "how" you do it, basically, is to learn to use an MSI authoring tool, determine where the files need to go on the hard drive, determine what needs to go into the registry, and build an MSI file that does what you want.

Personally, I use the Windows Installer XML (WiX) toolkit to build MSI files.

  • There is an absolutely wonderful WiX tutorial maintained by Gábor DEÁK JAHN. If you're looking to build a silent installer w/ no UI then there is a lot of this tutorial that you don't really need to learn, but it's still great stuff.

  • Although it applies to WiX 2.0 (which isn't the current version, but is still available and works just fine), this WiX tutoial does a pretty good job.

There are a lot of third-party graphical MSI builders out there, too. They break down into snapshot-based and non-snapshot-based.

The snapshot-based package builders suffer from the problem of picking up unrelated changes to the snapshot computer during software installation and can create really messy packages. I will sometimes use a snapshot tool to get a "feel" for what an installer does, but I always build my production packages by-hand.

The non-snapshot-based systems are usually just graphical IDEs for the MSI schema (and some general WiX XML source files that are "compiled" with WiX), allowing you to drag and drop, etc, to create packages.

Whtever you do, gaining some knowledge about how the Windows Installer works will give you the best chance of building good packages. Microsoft's documentation is a bit dense, but there's a lot of good stuff in there. In the end, I've found that trial-and-error has been the best way to get familiar with the nuances of Windows Installer.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.