Fightin_Foo
9th November 2007 20:38 UTC
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?
Anders
9th November 2007 20:52 UTC
The UAC plug-in attempts to address this. Take a look at the UAC_RealWorldExample.nsi in the zip file
Fightin_Foo
9th November 2007 22:35 UTC
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?
Anders
9th November 2007 23:56 UTC
ah its a service, then UAC::Exec is not what you want.
Checkout http://nsis.sourceforge.net/How_do_I...heck_a_service
Fightin_Foo
23rd November 2007 22:17 UTC
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?