Adding Impersonate="No" did not solve my permissions problem.  When I add 
Execute="deferred" as well, the custom action simply doesn't run anymore.  
Running with /log I get error 2762.

Re: FW: Running CustomAction as 
admin<http://sourceforge.net/mailarchive/message.php?msg_id=37898867>
From: Wilson, Phil <[EMAIL PROTECTED]> - 2007-01-12 17:21

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

Phil Wilson



From: André Schoorl
Sent: Friday, January 12, 2007 5:03 PM
To: 'wix-users@lists.sourceforge.net'
Subject: 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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to