Alexander Gnauck wrote:
> Rob Hamflett schrieb:
>> If you want them to be elevated you want Impersonate="no".  As for when they 
>> are executed, that 
>> depends on when you scheduled them, but a deferred custom action is supposed 
>> to be scheduled 
>> somewhere in the InstallExecuteSequence between InstallInitialize and 
>> InstallFinalize.
> 
> The MSDN sais:
> "Note that only deferred execution custom actions can use the 
> msidbCustomActionTypeNoImpersonate attribute. For more information see 
> Custom Action In-Script Execution Options"
> 
> this means i can elevate permissions only if I execute the actions deferred?
> Is there no way to to elevate permissions for actions that have to 
> execute immediate?

I think you'd have to run the whole install elevated.  Actually, if it was an 
exe with requiresAdmin 
specified in the manifest, that might get elevated.  If you need a DLL though I 
don't think that 
will work.  I looked at this, and although you can specify requiresAdmin in a 
DLL manifest, you 
can't elevate a DLL when you load it.
> 
> Elevated means i have the permissions of the LocalSystem account. Still 
> not enough permissions to access the network etc....

Really?  The elevated section of InstallExecuteSequence should be all powerful, 
given that it's 
making system changes.  What error are you getting back?  Are you sure you're 
not trying to access 
the network via a mapped drive?  Those are only visible to whichever user 
created them.
> 
> Are there any workarounds or tricks to execute custom actions with full 
> admin permissions?
> We tried a manifest in the native ca-dll, but the MSI installer ignores 
> the manifest.

Unless it deferred I think you'll have to run the whole thing as elevated.

Rob

> 
> Thanks,
> Alex
> 
> 
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to