Doesn't heat.exe harvest the registration information from the OCX? I've never had any problems with this in WiX 2.0 using tallow.exe & in WiX 3.x using its replacement heat.exe. As long as DLLRegisterServer is an exported function in your OCX it should be all fine.
If not the other way I use to grab registration information for out-of-process COM servers is to use RegSpy2 from http://www.installsite.org/pages/en/msi/tips.htm & then transform the .reg file I get from it to a .wxs by passing it through heat.exe. The .wxs will need a little tidying up as it literally translates everything in the .reg to the corresponding WiX elements but it gives you pretty much all the code required which can then be maintained from that point onwards with little effort. Palbinder Sandher Software Platform Engineer T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: Michael Osmond [mailto:mosm...@baytech.com.au] Sent: 06 March 2012 04:15 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Registering/Unregistering ActiveX contolrs Brad, One time I used the tools that were with WIX 2.0, but I can't remember the name anymore. After that I just manually register the file, and then look in HKEY_CLASSES_ROOT looking for the object names and then the CLASSID\{guid} keys. These were the two pieces I export and work from. How much work this is depends on how much the control implements. Also I had some information from the INF file as the ActiveX control started life as a CAB file download. Michael -----Original Message----- From: Brad Smith [mailto:brads...@tpg.com.au] Sent: Tuesday, 6 March 2012 1:08 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Registering/Unregistering ActiveX contolrs Hi Mike, Thanks for your insights - just a question.... What tool(s) did you use to find the differences in the registry? Brad. -----Original Message----- From: Michael Osmond [mailto:mosm...@baytech.com.au] Sent: Tuesday, 6 March 2012 10:24 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Registering/Unregistering ActiveX contolrs Hi Brad, My experience is that you need to work out what the class registrations are (either by Harvesting or otherwise) and do these using the Registry elements in the installation. Doing so gives you "registration" on install and removal afterwards. It's a bit of a pain to setup the first time, but once it is there it's pretty easy to maintain. I think I "harvested" the hard way by registering and then using Regedit to export the different keys I expected to a Reg file and building the WIX file from that. Michael -----Original Message----- From: Brad Smith [mailto:brads...@tpg.com.au] Sent: Tuesday, 6 March 2012 12:06 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Registering/Unregistering ActiveX contolrs Hi, I'm wanting to register my old-school ActiveX control (PDFViewer.ocx) during installation to use in my .NET application. Umm, how do I do it in WIX? I'm new to WIX, and from what I've seen so far this product looks very good. My research has lead me to the following choices: 1. I could use a Custom Action (gotta work out how to do that yet). I'm sure I can do this because I've got it registering & unregistering via native method calls from C# (and no, i don't just call regsvr32.exe!). I'll have to work out how to convert it to C++ (i.e. C++ Custom Action Project). I can go down this path but my problem is that I don't know how to set up the 'unregistering' of the ActiveX control during un-installation. Do I make a custom Action for unregistering, and if so, when/how do I get it to run? 2. I had a go at harvesting the registry, but I just couldn't get it working. I cannot afford any more days on this-surely there is an easier way? I tried to use an older Wix tool (is there one now?). I tried another tool, but to no avail. ...or is there a simple ActiveX registration/un-registration feature in Wix? I wasn't able to find much in documentation with this - can anyone help with some links? Any guidance from anyone would be greatly appreciated, as I'm keen to switch over to using this product more regularly. I'm using .NET 4.0, Wix v3.6.2627.0 Thanks, Brad. ---------------------------------------------------------------------------- -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users