Hi

I have a custom action that uses WMI (System.management classes) and creates a 
management object. Everything is running fine until 
System.ManagementObject.Put() method for committing the changes to the 
management object is called. Even this is running fine when I debug through the 
code from VS. But, when I invoke this custom action from my installer written 
in wix v2, It throws an error : access denied. I am running installer from 
administrator mode. 'Impersonation' is set to "no".

Here is the wix code.
    <CustomAction
                          Id="CustomActionBinaryInstallSapBts"
                          
FileKey="Microsoft.Adapters.Setup.CustomActionMachineDOTConfig"
                          ExeCommand='-ib sap [UILevel] $(env.PUBLIC_KEY)'

          Execute="deferred"
          Impersonate='no'/>

Please help.

Thanks

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