Hopefully someone can arrest my slow slide into insanity. I know you can do what I want as I have done it several times before, but I cannot quite remember the syntax and I cannot find my notes that I made at the time so I am pulling my hair out as I am on a deadline.
I have written and tested a system service in VB.Net and it is all compiled into a .EXE and ready to go. I am now trying to install the service using the installutil.exe utility provided by Visual Studio (in my case at C:\Windows\Microsoft.NET\Framework\v4.0.30319). I have started a DOS window (as Administrator) and have set my current directory to the location of installutil.exe and am now typing (what I thought was) the command to install the service passing a single parameter which is the location of the Configuration File for the service (names and paths changed):
installutil.exe "D:\MyPath\MyService.exe"" ""D:\MyConfig Files\MyConfig.xml"
It's not having it - just keep getting an error back:
Exception occurred while initializing the installation:
System.ArgumentException: Illegal characters in path..
As I said, I know you can do this as I have done it several times before, and have several services configured and running the same way - just can't get my quotes right to get it working. I know it is something like the above ....