Skip to content

Allow prompting for values #308

@m8urnett

Description

@m8urnett

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions