BA's should not modify machine state. Why not property drive your MSI which is installing the config file, and use a custom action (XmlFile, XmlConfig) to modify it?
-----Original Message----- From: Yari Serve [mailto:se...@my-horizon.de] Sent: Monday, January 05, 2015 7:34 AM To: 'General discussion about the WiX toolset.' Subject: [WiX-users] Elevating custom bootstrapper application Hello, I've written a custom WPF bootstrapper application and I need to modify some config files inside the install dir after installation. For easier editing, I want to use the custom BA instead of the WixUtils. Now this works without a problem with UAC disabled, though a disabled UAC throws an AccessDeniedException and does not allow me to modify said files (due to the files being installed in the restricted C:\Program Files\ folder). I've read around and tried using an application manifest for the BA (with using <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />), setting the InstallScope to "perMachine" and InstallPrivileges to "elevated" for my packages inside my bundle chain, as well as setting ForcePerMachine to "yes" for all MsiPackages inside my chain. The installation DOES get elevated (the UAC prompt pops up), however the custom BA itself does not get elevated... How can I do that? Thank you. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users