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

Reply via email to