+ Reply to Thread
Results 1 to 2 of 2

Thread: Another UAC Nightmare

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2011
    Location
    Livingston, TX
    Posts
    11

    Default Another UAC Nightmare

    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.

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Another UAC Nightmare

    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •