OK, I've tried both methods suggested by John and cannot seem to get the control registered on Vista with UAC enabled. On XP and Vista without UAC (a Mac running Vista via Parallels) it registers the control and works fine.
Our old InstallerVise installer registers the control just fine in Vista with UAC, so I know it can be done. Is there something else I might be missing? On Sep 14, 2007, at 12:01 PM, Wilson, Phil wrote: > .... and adding to John's comment, if it's a Vista machine where it > fails then the issue is likely to be UAC. Even an administrator > doesn't > always run with admin privileges, and that applies to impersonated > custom actions too. > http://msdn2.microsoft.com/en-us/library/aa372468.aspx > http://blogs.msdn.com/astebner/archive/2006/09/30/778865.aspx > http://www.macrovision.com/webdocuments/PDF/is_vista.pdf > > Phil Wilson > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of John > Hall > Sent: Friday, September 14, 2007 9:22 AM > To: Brad Stanley > Cc: [email protected] > Subject: Re: [WiX-users] Registering an OCX > >> Our software package needs to register an Active X Control. >> Currently I do it with the following: >> >> --- >> <Property Id='REGSVR'>regsvr32.exe</Property> >> >> <CustomAction Id="RegisterOCX" Return="asyncNoWait" >> Property="REGSVR" ExeCommand='/s "[INSTALLDIR]MyControl.ocx"' /> > >> Should I be following another method to register the OCX so >> it consistently registers? > > Brad, > > A much better approach is to extract the registry entries that your > OCX > creates and create the registry entries directly from your installer. > WiX 2 includes a utility 'tallow' [1] and WiX 3 a utility called > 'heat' > [2] that will do most of the work for you. > > Regards, > John > > [1] > http://blogs.conchango.com/stuartpreston/archive/2005/12/10/2488.aspx > [2] > http://installing.blogspot.com/2006/04/heatexe-making-setup- > easier.html > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

