Run ExeCommand in customAction as Administrator mode in Wix Installer
I am new to wix installer. I have developed a set-up using wix installer for my application and I need to execute a Custom Action to run a command in cmd.exe. In XP it works fine. But in Windows 8 & 7 the cmd prompt needs to be run as administrator. I have googled and found the keywords Elevated Privileges and impersonate might help me. <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" InstallPrivileges="elevated"></Package> As you can see above, I used the InstallScope attribute set to perMachine, and I have used Impersonate="No" in the CustomAction element: