PDA

View Full Version : Another UAC Nightmare



crmfghtr
08-03-2012, 07:25 PM
Hi
I'm sorry to sound stupid but I cannot seem to get my program (VS2010, VB.NET) to run on my test machine without manually setting the program to 'Run as Administrator' after I have installed the program using SB7. Why won't the program (which runs fine in the release version on the developement machine without 'Run as Administrator') run without UAC errors on the test machine?
The app.config file for the program says 'asInvoker' as well as the sb7. I have been trying to resolve this all day without any luck. I can't ask a user to run the program as an administrator each time they want to access it. I'm stumped on how to resolve this and could sure use some help.

linder
08-04-2012, 04:14 AM
Hello,

This has absolutely nothing to do with the installation program at all. If your program needs administrator execution level privileges to work correctly then you have to fix this at application level and not installation level. In other words, you have to fix this bug in your VB.NET app.

BTW, if you install your application machine-wide then you have to install it with "requireAdministrator" privileges. Otherwise you do not have access to protected Windows areas (e.g. the "Program Files" folder tree, the HKEY_LOCAL_MACHINE registry branch, etc.).

Hope this helps.

Friedrich