I have a batch file that encrypts the connection strings in my web.config during the InstallFinalize state. On Windows 7 with UAC enabled, this file will not execute correctly. How can I execute this batch file as an administrator?
To execute the custom action with elevated privileges, the custom action must be marked as "with no impersonation" from it's properties pane to the right.
"With no impersonation" custom actions run under the local SYSTEM account, thus with full privileges.
FOLLOW US
Get the latest news in Application Packaging