Menu

#782 "Run program"-option under Vista runs program as Admin

2.0 Series
closed-duplicate
General (291)
5
2008-06-13
2008-05-23
No

Usually a NSIS-setup has a "Run Program"-checkbox on the last page that will execute the installed program after the setup finishes.
What happens is, however, most likely not desired on Windows Vista. Since the installer is started as Administrator, the programm will be executed as Administrator, too. This means that the program-configuration and data will be stored in \Users\Administrator. The next time the user executes the program from the Start-menu, it will be executed as the normal user and the settings and configurations he made when starting the program the first time are gone.
There can be two solutions to this problem:
a) Remove the "Run Application"-checkbox on Windows Vista
b) Find out which user's session is currently active and run the program as that user. I'm not sure this is technically possible, especially on Terminal Servers.

Discussion

  • Daniel Albuschat

    Logged In: YES
    user_id=781375
    Originator: YES

    There's already a plugin which tries to solve this problem, here: http://nsis.sourceforge.net/UAC_plug-in
    This should be integrated into the standard installation of NSIS.

     
  • Amir Szekely

    Amir Szekely - 2008-06-13
    • assigned_to: nobody --> kichik
    • status: open --> closed-duplicate
     
  • Amir Szekely

    Amir Szekely - 2008-06-13

    Logged In: YES
    user_id=584402
    Originator: NO

    Duplicate of #1721182.

     

Log in to post a comment.