3 I am trying to install a Windows service using a batch file, let me call it "setup.bat". Inside the file, I have the following commands:
"%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil" "MyService.exe"
When I release the batch file (works as an administrator on windows7), I get the following:
An exception occurred during initialization of the installation: System.IO.FileNotFoundException: Failed to load file or assembly: /// C: \ Win dows \ system32 \ MyService.exe 'or one of its dependencies. The system cannot ind the specified file .. The actual service is located at the address of the
"SomeRandomLocation\MyService.exe".
bat file
"SomeRandomLocation\setup.bat"
what's happening? how can i get it to install from my setup.bat folder?
this should work dynamically. value in any folder!
source
share