Tasks depending on install dialog answers - Advanced Installer Community
Fulgan
Posts: 101
Joined: Mon Feb 27, 2012 10:42 am

Tasks depending on install dialog answers

Hello,

I'm wondering how I could design an installer in the following way:

- The user is prompted what user account to use: something he enters himself or one of the predefined local accounts
- Based on the selection above, a service will use either the specified account or a predefined one (NetworkServices, typically)
- Same thing with IIS authentication
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Tasks depending on install dialog answers

Hello,
- The user is prompted what user account to use: something he enters himself or one of the predefined local accounts
For this you can create your own custom dialog which will store the user selection into installer properties. For example you can use two check box controls (CUSTOM_ACCOUNT_PROP and PREDEFINED_ACCOUNT_PROP) to store the user selection and store the account name into edit box control (ACCOUNT_NAME_PROP). Please take a look on the "Adding a custom dialog" tutorial.
- Based on the selection above, a service will use either the specified account or a predefined one (NetworkServices, typically)
Please take a look on the "Install a service for a custom user" how to.
- Same thing with IIS authentication
In order to achieve this you should choose the "Property based user" option from "Authentication" tab and use the above "ACCOUNT_NAME_PROP" property in the "Name" field.

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Fulgan
Posts: 101
Joined: Mon Feb 27, 2012 10:42 am

Re: Tasks depending on install dialog answers

Thank you for your answer.

I fear I might have improperly explained what I wish to do.

Basically, I would like to reproduce the behavior of some service installer where the user can chose to use either one of several default accounts (well-known security principals like "Network services" or "system") or decide to use a custom one.

One example for this behavior is the installer for MSSQL server:

Image

My problem isn't with the custom dialog design b ut rather with the behavior of the service installer. It shouldn't specify any password when using a well-known security pribncipal for the user.

Additionally, I can't find a way for IIS to use a domain\user for identity: I can only specify the user name coming from a property, not what domain should be used.

Thanks again
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Tasks depending on install dialog answers

Hello,

I apologize for my delayed answer.
Basically, I would like to reproduce the behavior of some service installer where the user can chose to use either one of several default accounts (well-known security principals like "Network services" or "system") or decide to use a custom one.
My problem isn't with the custom dialog design b ut rather with the behavior of the service installer. It shouldn't specify any password when using a well-known security pribncipal for the user.
In order to achieve this you can try to use the approach exposed in our "Install a service for a custom user" how to. Then, in order to install the service under a built-in user account (e.g. LocalSystem) you should make sure the "SERVICE_PASSWORD" property is left empty. Also, when choosing to install the service under "LocalSystem" account you should make sure the "SERVICE_USER" property is left empty. Please take a look on our "Service Properties" article.
Additionally, I can't find a way for IIS to use a domain\user for identity: I can only specify the user name coming from a property, not what domain should be used.
I think this topic is debated in "IIS identity" thread.

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

Return to “Common Problems”