With UAC on vista no user is an admin unless they approve an elevate (via the 
UAC prompt).  If you need a custom action to run with elevated privileges (a 
real admin) then you need to do a deferred CA with Impersonate = yes. This is 
what you are doing in your sample and it is the correct way to do it.
 

Mike Poulson
Network Engineer
Tableau Software
400 North 34th Street, Suite 200
Seattle, WA 98103
206 633 3400 x.556



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of WenWu Ru
Sent: Friday, April 13, 2007 9:27 AM
To: [EMAIL PROTECTED]
Subject: [WiX-users] How to set msidbCustomActionTypeNoImpersonate in Wix?

A custom action in my installer fails on Vista even if an admin user logs on 
and launches the installer.  I figured that the custom action needs to have 
msidbCustomActionTypeNoImpersonate set and adding Impersonate="no" would fix 
the issue.  To my suprise, the ActionType is still 1025.  Instead, I have to 
use Impersonate="yes" to set the bit and get the ActionType to be 3073.  Is 
this correct?  Am I missing something?  I am using WiX version 2.0.3016.0.

<CustomAction Id="WriteToRegistry" Return="check" Execute="deferred" 
Impersonate="yes" BinaryKey="InstallerCustomActions.dll" 
DllEntry="WriteToRegistry" />

Thanks!

_________________________________________________________________
MSN is giving away a trip to Vegas to see Elton John.  Enter to win today. 
http://msnconcertcontest.com?icid-nceltontagline



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to