Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends..

I am getting a problem while installing a windows service using installutil.exe

While installing it throws exception System.IO.Filenotfoundexception.

The Problem i have realised is that :- The Path is Consist of blank spaces like

C:\Program Files\Anvi Corp. Ltd\Install\WindowsService.Exe as u can see the path is consist of

blank spaces between Program Files , Anvi Corp. Ltd.

If i Create same Path by creating Folders with the same names but Removing Blank Spaces then it is working.

So, Friends Please tell how to solve this Problem.

Thanks in Advance.
Posted

1 solution

Quotes, my friend, quotes.
Specifically, double quotes around the string when you pass it to installutil.exe
"C:\Program Files\Anvi Corp. Ltd\Install\WindowsService.Exe"
Should fix it.
 
Share this answer
 
Comments
bbirajdar 29-Nov-12 9:19am    
Correct answer +5.. :) I faced the same problem and used the same fix..
Varinder Raii 29-Nov-12 23:13pm    
@OriginalGriff Thanks.....
OriginalGriff 30-Nov-12 2:23am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900