I\'ve created a Windows service in C#, installed it on a server and it is running fine.
Now I want to install the same service again, but running from a different wo
Instead of using Environment.GetCommandLineArgs(); the class Installer has a property called Context from which you can access command line arguments passed to InstallUtil structured in a nice StringDictionary.
Environment.GetCommandLineArgs();
Installer
Context
StringDictionary