Old 21st January 2010, 11:44   #1
lerklompen
Junior Member
 
Join Date: Jan 2010
Posts: 1
request admin privileges + run upon finish

when running the installed program upon finish in combination with requesting application privileges as admin:
- if a "user" is trying to install, he/she must choose one of the "admin" user accounts to be able to install.
- the password for this admin user must be filled in to allow the install procedure.
- upon finishing the installation the installed program is started:
this process is actually started as the admin user, but running on the logged on user's desktop!
if the application has any kind of file dialogs (open, save as, etc.) this "user" is now able to browse, alter, delete, all of this admin user's files!

this "bug" or what to call it, is fairly common among many installers, but it would be nice to be able to avoid it.

is there any workaround? that is; let the installer start the program upon finish, but as the user logged on, not as the admin running the installation?

Last edited by lerklompen; 21st January 2010 at 14:29.
lerklompen is offline   Reply With Quote
Old 21st January 2010, 13:02   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Two solutions exist for NSIS:
1) Remove the Run Application checkbox from your finish page. This is the simple solution.
2) Use the UAC plugin to execute your application As User in a finishpage run-function. This is the complicated solution, and sports a much higher chance of going wrong.

Option 1 is recommended. The Run checkbox is practically useless anyway.
MSG is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump