bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Start and stop windows service in Restricted user account

Hi

We have windows service build in c# which will be start/ stop using c# console.

It workes fine in admistrator account but console is unable to start it in the Restricted user account.

Is it possible to give the permissions at the time of installation to work in all user account ?
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Start and stop windows service in Restricted user accoun

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to achieve what you want it is recommended to have a per-machine package installation. However, if you want you can take a look on "Start / Stop a Windows Service from a non-Administrator user account" article which may be useful for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Re: Start and stop windows service in Restricted user accoun

Hi Daniel ThnQ for the reply,,,
We are using per-machine package installation.

I saw the link mentiond by you, but it seems to be complicated. Can we do the same using installer?
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Start and stop windows service in Restricted user accoun

Hello,

I'm afraid we don't have support for this. You can try to implement your own custom action in order to achieve this.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”