G
Guest
I would like to set command line arguments to a service at install time. I
need to do this because I need to get information from different registry
locations depending on my command line argument. I have to do it this way as
the consumer of the service should not be able to change the argument -
except by uninstalling and reinstalling the service.
I created the service and the service itself works great. However, when I
try to install the service I get the following error:
"System.IO.FileNotFoundException: File or assembly name BDCC, or one of its
dependencies, was not found."
The command I am using to install the service is:
installutil StartUpParams.exe -a BDCC
I have also tried the following with no success:
installutil "StartUpParams.exe -a BDCC"
installutil [StartUpParams.exe -a BDCC]
installutil "StartUpParams.exe" -a BDCC
installutil "StartUpParams.exe" "-a BDCC"
Is there any way I can install the service with command line arguments? I
don't want to use "Start Parameters" from "Service Properties" as the end
user can change the the parameter without uninstalling the service first.
need to do this because I need to get information from different registry
locations depending on my command line argument. I have to do it this way as
the consumer of the service should not be able to change the argument -
except by uninstalling and reinstalling the service.
I created the service and the service itself works great. However, when I
try to install the service I get the following error:
"System.IO.FileNotFoundException: File or assembly name BDCC, or one of its
dependencies, was not found."
The command I am using to install the service is:
installutil StartUpParams.exe -a BDCC
I have also tried the following with no success:
installutil "StartUpParams.exe -a BDCC"
installutil [StartUpParams.exe -a BDCC]
installutil "StartUpParams.exe" -a BDCC
installutil "StartUpParams.exe" "-a BDCC"
Is there any way I can install the service with command line arguments? I
don't want to use "Start Parameters" from "Service Properties" as the end
user can change the the parameter without uninstalling the service first.