stolliver
Posts: 6
Joined: Tue Feb 11, 2014 4:57 pm

Services - Determine "Local Systm" or "user" at install time

Hi,

I will be displaying a dialog that allows the launching user to choose whether all Windows services will run as "Local System", or as a specified user. If the choice is for a specified user, I then will display the "LogonInformationDialog" to collect/validate the user/pass info (to be supplied to the Services setup). The problem will be marking the Service 'Set "Log on as a service" policy for selected username" box as checked if a specific user has been chosen. It appears the only way to check this box is up front (installer design time).

Any way around this?

Thanks,

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

Re: Services - Determine "Local Systm" or "user" at install

Hi Shelby and welcome to our forums,

You should be able to installed under the System account even if this option is enabled and no username and password info are set, thus those fields are empty. Quoting Microsoft docs: "The default changed in Windows Server 2008 R2 and Windows 7 from Not defined in that only the Network Service account has this right by default. Any service that runs under a separate user account must be assigned this user right."

Have you tried and it did not worked?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stolliver
Posts: 6
Joined: Tue Feb 11, 2014 4:57 pm

Re: Services - Determine "Local Systm" or "user" at install

Bogdan,

"No", I haven't tried this, but it makes sense what you describe. This is good news.
Thanks for the assist.

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

Re: Services - Determine "Local Systm" or "user" at install

Anytime Shelby.

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

Return to “Building Installers”