My intention is to show a UAC popup for non-admins while installing an .exe in Program Files. I have tried using mt.exe after on the final .exe which is built by InstallAnywhere, but after adding manifest using mt.exe the installer .exe file is reduced to a large extent. How can I overcome that issue? How to Show UAC while installing in program files for non-admins?
Answer by
Stephen Prastman
By default, you can force the application to run as Administrator using: "Required Execution Level" to "Administratior" in the "Build your Release" settings. If the user starts the installation as a local username, he will be prompted to run it as Administrator using the standard UAC controls.
My intention is to show a UAC popup for non-admins while installing an .exe in Program Files. I have tried using mt.exe after on the final .exe which is built by InstallAnywhere, but after adding manifest using mt.exe the installer .exe file is reduced to a large extent. How can I overcome that issue? How to Show UAC while installing in program files for non-admins?
By default, you can force the application to run as Administrator using: "Required Execution Level" to "Administratior" in the "Build your Release" settings. If the user starts the installation as a local username, he will be prompted to run it as Administrator using the standard UAC controls.
You can use the indications from the MSDN website as well: https://msdn.microsoft.com/en-us/library/bb756929.aspx