Caller of System.ManagementObject.Put() should be fully trusted. Not accessible by partially trusted code. What should be the values of "Execute" and "Impersonate" for this ? Please reply.
-----Original Message----- From: Mukesh Agrawal [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2008 4:55 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] A Problem with CustomAction I would like to add one more thing, custom action is running absolutely fine from command line. From: Mukesh Agrawal Sent: Tuesday, December 02, 2008 4:46 PM To: General discussion for Windows Installer XML toolset. Subject: A Problem with CustomAction 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 ------------------------------------------------------------------------- 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