Using command line install username option not recognized

579 views
Skip to first unread message

David Woakes

unread,
Mar 24, 2014, 5:35:42 AM3/24/14
to topshelf...@googlegroups.com
I've written a service which uses runasprompt for the user account to run under, and am trying to pass in the username and password using the form:

myservice.exe install -username ".\Local Account" -password "Password"

But I get the error:

[Failure] Command Line An unknown command-line option was found: DEFINE: username = .\Local Account

I'm using TopShelf 3.1.3

Stuart Dunkeld

unread,
Mar 24, 2014, 1:45:55 PM3/24/14
to topshelf...@googlegroups.com
I think this is the syntax:

myservice.exe install -username:domain\username -password:password


Regards


Stuart




--
You received this message because you are subscribed to the Google Groups "topshelf-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topshelf-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jaspalsinh Chauhan

unread,
Mar 25, 2014, 4:08:03 PM3/25/14
to topshelf...@googlegroups.com
I think you what you need here and what I understand from documentation is the "-interactive" command-line option for passing username and password
"RunAsPrompt" will show a pop-up where you need to provide your username and password and hit "OK" to continue.

Correct me if I am wrong (anyone)
Reply all
Reply to author
Forward
0 new messages