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.
Service install problem/question
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
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
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
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...
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/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Who is online
Users browsing this forum: Majestic-12 [Bot] and 150 guests