Click here to Skip to main content
15,889,839 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello!

I have:
0. Simple HelloWorld.exe application. Application does not need admin rights.
1. Visual Studio 2008 Pro Setup project which install HelloWorld.

Current situation:
0. Run msi
1. If install directory is Program Files\Example - UAC dialog is active before create dir and copy exe;
2. If install directory is User\Desktop\Example - UAC dialog is active before create dir and copy exe;

Question:
Why windows installer is upgrating rights when create directory on desktop?

I need:
Show UAC dialog only if need admin rights for install directory.
Is it possible?

Thank you.
Posted

I had to do this a little while ago. You need to change in your properties tab the
InstallPrivileges='limited'
to
InstallScope='perUser'
What this will do is it will always need admin rights to launch. So you will get that admin dialog to show up when you run the program.
 
Share this answer
 
v2
Comments
Aleksey Tikhonov 21-Jan-14 11:27am    
I can not find InstallPrivileges or InstallScope in the properites and in all files.
Is it applied to Wix installer?
I need to build it in Setup Visual Studio project.
Finded:

http://practicalfish.com/blog/deployment/msi-remove-uac/

thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900