I would recommend doing Bob's "semi-custom" action scheme:
http://www.joyofsetup.com/2007/07/01/semi-custom-actions/

Let Windows Installer write the registry key for you.

-----Original Message-----
From: Sherwood Hu [mailto:sherw...@morovia.com] 
Sent: Wednesday, October 28, 2009 8:09 PM
To: WiX-users@lists.sourceforge.net
Subject: [WiX-users] Modifying an existing Wix 2 script for Vista

Hi all, 

 

I am working on a Wix2 script written a couple of years ago. We want the
.msi produced compatible with Vista UAC mode.

 

The installer contains a custom action (written in C++ DLL), which
creates a key under HKCM/Software/CompanyName/ProductName. It runs at
UISequence. Based on my understanding, this is not good, so I split it
into two CAs, the validation happens in the UI sequence, and the actual
writing happens in INstallSequence. 

 

I already added elevated privilege attribute in <package> element.

 

 Now the problem is that I always get "access denined" error when
calling RegCreateKeyEx to create key
HKCM/Software/CompanyName/ProductName. 

 

Is there anything I can do to solve the problem. Note that this did not
happen in WinXP.

----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to