Grant logon as a service - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

anupmistry
Posts: 52
Joined: Tue Jan 12, 2010 6:39 pm

Grant logon as a service

Using AI Enterprise project. Have created a windows service in VB.NET. The Project also creates a user on the system and assigns them to the Administrators group.When I test my install; when its at Starting Services .... get the message. Insufficient priviledges. The user that is created by the AI project does not seem to have "grant logon as a service" right. How do I change the advanced installer project so it not only creates the user, assigns the group but also gives that user the grant logon as service right. The solution will have to work for all windows operating systems. Our customers have varied systems XP, Vista, 2003, 2008, 2008R2, Small business server etc. I will know the username/password before-hand hence that can be hardcoded into the project if need be.

Thx.
octavian.vasilovici
Posts: 51
Joined: Tue Jan 25, 2011 2:43 pm

Re: Grant logon as a service

Hello,

This article provides all the information on how to install a service for a user. As you can see, there is no way of installing a service for an user installed by the same package. The same article provides a work-around for this case.

If you have any other question, please don't hesitate to contact us.

Best Regards,
Octavian
_______________________________________________________________________________________________________________________________________________
Octavian Vasilovici
Advanced Installer Team
http://www.advancedinstaller.com/
Octavian Vasilovici - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”