Hello and welcome to our forums,
Mainly, to achieve what you want you should first create your own dialog on which the user will select the desired service user account and password (e.g. SERVICE_USER and SERVICE_PASSWORD properties). Please take a look on our
"Using the Dialog Editor" tutorials which should be a good starting point for you. Then, you should use the above properties in the "Account" section of your
"Service Properties" right pane.
Here's a step by step procedure:
1. go to "Install Parameters" page and add the "SERVICE_USER" and "SERVICE_PASSWORD" properties in the "Properties" section
2. go to "Dialogs" page and create your own custom dialog on which the "SERVICE_USER" and "SERVICE_PASSWORD" properties will be set accordingly with the user selection
3. go to "Services" page and add your service
4. in the "Service Properties" right pane -> "Account" section set the "Username" field to
[SERVICE_USER] and the "Password" field to
[SERVICE_PASSWORD]
5. check "Set "Log on as a service" policy for selected username" option
5. build and test the project
Note: If you want to install the service under the "LocalSystem" account, then the "SERVICE_USER" and "SERVICE_PASSWORD" properties should be both set to an empty value.
If you have any further questions or doubts just let us know.
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging