-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Milestone
Description
Allow for setting variables in the config file that are prompted for when using the install
command.
Example:
<serviceaccount>
<domain>YOURDOMAIN</domain>
<user>{{PROMPT}}</user>
<password>{{PROMPT}}</password>
<allowservicelogon>true</allowservicelogon>
</serviceaccount>
Alternative method:
<InstallPrompt>$user</InstallPrompt>
<InstallPrompt>$password</InstallPrompt>
...
<user>$user</user>
<password>$password</password>
Then when you install:
c:\> myservice.exe -install
Enter user: username
Enter password: *********
This would not only be a security improvement but would also allow for more portability. For example, including a winsw config with an app and prompting for the necessary values.
laguiz, il--ya and nxtn