When a user installs my application how do I keep User Account Control from producing this dialog? And no I don’t want to tell them to disable UAC.

(source: netron.com)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’d need to design your installation such that it doesn’t require administrative access to install, which essentially means that you’ll need to install inside the user’s home directory instead of
ProgramFilesDirand write registry entries only toHKEY_CURRENT_USER. For more details on how do this with a .MSI package, see this article. Inno Setup also has some details on limited user installs.I don’t think Visual Studio’s setup project builder is capable of producing packages that don’t require administrator rights to install. In any case, Vista seems to assume that anything that looks like a Setup.exe needs elevation (and results in the prompt).
Code signing will not remove the prompt, it will only make it say ‘Program XYZ from Developer Name wants access to your computer’ instead of ‘An unknown program wants access to your computer’.