Archive: Install for Current User not System User


Install for Current User not System User
Hello all,

I am trying to write an installer for a program that will run all the time. Right now all I can get the installer to copy the program and run it under the system user, and I would like to have the program run under the current logged in user. Anybody have any suggestions?


The UAC plug-in attempts to address this. Take a look at the UAC_RealWorldExample.nsi in the zip file


Thanks for the idea, it looks like it has potential.

I am having a little trouble with the UAC::Exec funtion though. Since my program is a service that runs all the time I need to start it with sc. The wiki page has the example:

UAC::Exec '' '"$INSTDIR\${APPFILE}"' '' ''

anybody know what the extra parameters are and if they could help me? Or anybody have any other ideas?


ah its a service, then UAC::Exec is not what you want.

Checkout http://nsis.sourceforge.net/How_do_I...heck_a_service


Thanks for the tips Anders. Sorry for the slow reply, this part of the project got put on the back burner. I am using the NSIS Service Lib and not having much luck. Have any reccomendations about which one to try?