I am installing a windows service using visual studio command prompt using the following command
installutil D:\Folder1\Projectname\bin\Debug\Service1.exe
But I get the following exception
Exception occurred while initializing the
installation:System.IO.FileNotFoundException: Could not load file or
assembly ‘file:///D:\Folder1\WIN’ or one of its dependencies. The
system cannot find the file specified..
Is the command wrong or Am I missing anything else?
File paths with spaces in them must be quoted.
Good
Bad
The OS stops reading the path at the first space, causing it to look for a file named”c:\my”, which does not exist.