Service install problem/question

Got a problem you cannot solve? Try here.
cptlo306
Posts: 4
Joined: Wed Jul 26, 2006 10:02 am

Service install problem/question

Postby cptlo306 » Wed Aug 23, 2006 10:58 am

I'm trying to install a new windows service as part of my installation. The new service is configured to run as a user specified account that is input via a custom dialog. The service gets created and all properties are set correctly but the account specified isn't given "log on as a service" rights when the service is created so it fails to start. If I go in and manually specify the same account again, Windows prompts that the service has been granted "log on as service" rights. Is there a way to have InstallAware perform this task also so the specified account has the needed rights.

Thanks.

hsmith
Posts: 12
Joined: Fri Aug 25, 2006 3:36 am
Location: UK
Contact:

Postby hsmith » Fri Aug 25, 2006 10:31 am

Hi

Ive been trying to do the same for ages, and I think I may have found just the program.

Download the Windows 2003 resource kit and get the file called NTRights.exe

Docs at http://support.microsoft.com/kb/279664/EN-US

basically if you run ntrights.exe -u fred +r SeServiceLogonRight in your installer then this will set the logon as service rights for user fred.

I dont know at this stage if it will play with Installaware or what OS's it will work with (tried with 2003 and XP and its fine so far)

Best Regards

Howard Smith

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Fri Aug 25, 2006 1:34 pm

Thanks, Howard!

You can just add this program to your InstallAware setup as a creative/support file (this way the file does not get installed with your application, and is only temporarily available with your setup).

Then, just call it using Run Program (or Run Program As), providing this path: $SUPPORTDIR$\\NTRights.exe

along with any parameters you want to pass to the program. That should take care of it for you!

Thanks again for sharing this tool with us...
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 150 guests