none
UAC elevation issue RRS feed

  • Question

  • HI All,

    We are facing wellknow blocking problem in windows vista when a standard user (without admin rights) gets login. We have a registry entry under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\ for an application which gets executed every time by the windows whenever user gets login. But in case of Vista (standard user), application execution is blocked due to the UAC. Turning off UAC is not the solution in our case. Application makes some registry entry under HKEY_CURRENT_USER. When Apllication versioning information is removed , smooth executiuon took place.
    Manifest file method was also tried out but the UAC elevation is not taking place.

    Now We are planning to implement the same functionality in a system service (as mentioned in several documnetation). The service will makes the registry entry once the user gets login. But here the problem is with the win logon notification which is not available in Vista.

    Is there any way available in windows vista to get the win logon status (via hooking, notification or polling etc)?

    or

    Is there anyother way  to solve the same problem?

    Thanks in Advance.

    Regards,
    Amit Goel
    Thursday, August 30, 2007 10:41 AM

All replies

  • If the only registry locations you are writing to are under HKEY_CURRENT_USER then you don't need UAC elevation, since that is a per-user location. Therefore you should manifest your executable to run asInvoker and it should run fine.

     

    As an aside, you may also consider switching to using HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\ so that individual users can configure whether or not they want the application to launch at startup.

    Thursday, August 30, 2007 3:48 PM