new service with rights for every user to start - 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!

mancereus
Posts: 2
Joined: Tue Jan 10, 2012 8:10 pm

new service with rights for every user to start

Hi,
my installation needs to hav a new service. Every user on the system needs the rights to tstart and stop this service.
This is a problem with Windows 7.

i can set the service rights with "sc sdset (***)"

i tried to include a custom action with vbs and WShell.execute("sc sdset..")
But the vbs scripts had no admin rights for this call.

Can you give me any help how to achieve this in advanced installer?

regards,
Matthias
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: new service with rights for every user to start

Hi Matthias,

To have the custom action executed with admin rights you can schedule it as "Deferred with no impersonation", this will make it run with full rights under the SYSTEM account.

Please note that deferred custom actions cannot access public properties, the only way to pass their values to it is using the Action Data field.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”