Force UAC-prompt for Setup.exe

Got a problem you cannot solve? Try here.
Post Reply
markr
Posts: 2
Joined: Fri Jan 04, 2008 9:54 am

Force UAC-prompt for Setup.exe

Post by markr »

We have InstallAware 7 Express. Our application installs program files in the C:\\Program Files directory. So Setup.exe needs Elevated Privileges.

How can I make sure that Setup.exe will present the user with the UAC prompt to obtain the proper admin privileges?

I want to user to double click on the icon, not to right click and select "Run as administrator" or something.

I tried to add a manifest using mt.exe, but as stated somewhere else, mt.exe gets truncated.

Simular topics:
- http://forums.installaware.com/viewtopic.php?t=2288
- http://forums.installaware.com/viewtopic.php?t=1845


Thanks,

Mark
elecuyer
Posts: 13
Joined: Thu Jun 28, 2007 9:47 am
Location: Haverhill, MA
Contact:

Put the manifest in Dependent.exe

Post by elecuyer »

I'm running IA 7 and had the same issue. In my case, for whatever reason, when I switched from using a VeriSign code signing certificate to one from Comodo (at a significant savings) the UAC stopped requesting Admin Privileges when running installs under Vista.

It appears that you can not use MT.exe to change the manifest file of a built IA7 single-exe install (truncated file reported elsewhere.) However, in the InstallAware 7 directory you CAN change the manifest file of Dependent.exe. I put in a new Manifest into Dependent.exe (using MT.EXE) and I got my requestedExecutionLevel level="requireAdministrator" back in place.

Before attempting this, you may want to backup your Dependent.exe file, in the event that there are unintended side effects. Then, use MT.exe to embed the manifest. Finally, rebuild your setup.

I have no idea if this applies to other versions of IA, but it worked for me.
neillans
Posts: 536
Joined: Sat Nov 04, 2006 6:21 am
Location: Scottish Borders, UK

Post by neillans »

Hi guys,

Just to confirm this is correct; you can not modify the file directly as it is a stub file that is built during the compilation process.

I would like to indicate that InstallAware 9 includes support in the GUI for adjusting this manifest option. (UAC)
Andy Neillans
Post Reply