You need a deferred custom action with no impersonation scheduled in the
InstallExecuteSequence after the standard action "InstallInitialize" to make
sure the CA is always run with system privileges (if you really need that).
You are also forced to per-machine installation then.


MadhaviAthota wrote:
> 
> Hi All, 
> 
> I have written a custom action in DTF to create EventSource.
> 
> I have written a custom action in WIX file like
> 
> <CustomAction Id="CreateEventSource" BinaryKey="EventSrcFile"
> DllEntry="CreateEventLog" Execute="immediate" Return="check"
> HideTarget="no" Impersonate="no">
> 
> I am getting security exception.
> 
> I tried with 
> 
> <CustomAction Id="CreateEventSource" BinaryKey="EventSrcFile"
> DllEntry="CreateEventLog" Execute="immediate" Return="check"
> HideTarget="no" Impersonate="yes">
> 
> I tried deferred also, but didn't work.
> My WIX version is v3.0.4318.0
> 
> Thank You,
> Madhavi.
> 

-- 
View this message in context: 
http://n2.nabble.com/Custom-Action-Previleges-Error.-tp1489129p1489563.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to