Permissions assignment and UAC

Got a problem you cannot solve? Try here.
Post Reply
pokr
Posts: 14
Joined: Wed Apr 21, 2010 10:11 pm

Permissions assignment and UAC

Post by pokr »

Hi,

The installer for our product sets up several working folders with specific privileges. Since we require admin privileges for installation, on Windows XP machines everything works flawlessly, but on Vista and Seven machines with UAC activated the folders do not get created correctly, we believe due to file virtualization issues. When we turn on the option "Vista UAC Control" in the Design tab of the project, everything works fine on Vista and Seven; but then the installer doesn't run on XP machines!

Is there any solution to this, other than creating two separate installers?

Thanks for everything, best regards,

Octavio
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Re: Permissions assignment and UAC

Post by MichaelNesmith »

The UAC check actually sees if UAC virtualization is present on the target platform when selected. So just drop down to the MSIcode view and wrap your UAC check around an If clause, performing it only if you are running on Vista or higher. That should do the trick!
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
pokr
Posts: 14
Joined: Wed Apr 21, 2010 10:11 pm

Re: Permissions assignment and UAC

Post by pokr »

Thanks a lot, Michael!

Haven't finished testing yet, but seems to work great!

Regards,

Octavio
Post Reply