Deferred also means it needs to be before InstallFinalize.  Did you get error 
2762? 
 
Phil Wilson 


________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of André Schoorl
Sent: Friday, January 12, 2007 5:03 PM
To: [email protected]
Subject: [WiX-users] FW: Running CustomAction as admin



I currently have the following CustomAction I want to run as admin under Vista:

 

<CustomAction Id="ActionDeviceInstall" BinaryKey="CustomActions" 
DllEntry="ActionDeviceInstall" />

 

<InstallExecuteSequence>

      <Custom Action="ActionDeviceInstall" 
After="InstallFinalize"><![CDATA[(NOT REMOVE~="ALL")]]></Custom>

</InstallExecuteSequence>

 

Seems I have to set Impersonate="no" and Execute="deferred".  Since I'm a WiX 
dummy I'm just not sure how to trigger a deferred CustomAction, to mimick what 
we had above ?

 

-- André

 

From: Heath Stewart 
Sent: Thursday, January 11, 2007 3:30 PM
To: André Schoorl; Windows Installer Support (MS Internal)
Subject: RE: Running CustomAction as admin

 

The CA has to be attributed with msidbCustomActionTypeNoImpersonate. See 
http://blogs.msdn.com/rflaming/archive/2006/09/23/768248.aspx and 
http://blogs.msdn.com/heaths/archive/2006/10/20/impersonating-the-right-token-in-vista.aspx.
 

 

Heath Stewart
Software Design Engineer
Deployment Technologies Group, Microsoft
http://blogs.msdn.com/heaths

-------------------------------------------------------------------------
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