Here is something from MS: http://support.microsoft.com/kb/305574
Here is another idea (probably overly complex) 1. install a service to run as local system. 2. Start the service. 3. Have the service do the deletion. 4. Stop the services. 5. Uninstall the service. Here is another thought: If you are pushing the MSI with a Deployment tool such as LANDesk ManagementSuite, then the MSI will be running as Local System and would work when pushed with LANDesk, but not when run manually. -----Original Message----- From: Elfe Xu [mailto:elf...@microsoft.com] Sent: Saturday, August 28, 2010 8:31 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to make the custom action run under LocalSystem account? Hi, I have a custom action that need to delete a remote sub-folder \\servermachine\sharedfolder$\clientID<file:///\\servermachine\sharedfolder$\clientID> , the sub-folder's CREATOR OWNER is clientMachine$, it's created by a service running on client machine with LocalSystem account, and only the CREATOR OWNER has permission to delete it. Since the Windows Installer is also running under LocalSystem (I checked services.msc and confirmed that), if I make the custom action not impersonating (CustomAction/@Impersonate=no), shouldn't it using the LocalSystem account? However, I found it is still running as the user's account (clientMachine\Administrator). If I logon as a non-admin user (clientMachine\testUser), when doing the uninstall, it requires me to provide admin credential (I use clientMachine\Administrator), then I found the custom action is using the administrator's account. Is there any method to make the CA running under LocalSystem account? (My CA type is 3072, i.e. msidbCustomActionTypeDll + msidbCustomActionTypeBinaryData + msidbCustomActionTypeInScript + msidbCustomActionTypeNoImpersonate) Thanks, -Elfe ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users