|
-
Jun 28th, 2004, 09:02 PM
#1
Thread Starter
New Member
Problem installing windows service
I am trying to install my windows service. When I run the install util as follows I get the error below. Please let me know what I am going wrong.
C:\WINNT\Microsoft.NET\Framework\v1.1.4322>InstallUtil.exe C:\Documents and Settings\jeffrey\Desktop\WindowsServiceExample\WindowsServiceExample\bin\WindowsServiceExample.exe
Exception occurred while initializing the installation: System.IO.FileNotFoundException: File or assembly name Documents, or one of its dependencies, was not found..
-
Jun 30th, 2004, 09:30 AM
#2
Addicted Member
First, change directory to where your windows service reside: eg. from the command prompt
Code:
cd C:\Documents and Settings\jeffrey\Desktop\WindowsServiceExample\WindowsServiceExample\bin\
Next, if you are using the cmd.exe shortcut provided by VS.NET during installation, just type:
Code:
installutil WindowsServiceExample.exe
Otherwise, set path to the folder where installutil.exe resides.
Hope it will help.
-
Jun 30th, 2004, 09:39 AM
#3
Frenzied Member
Aren't you supposed to put the file name in quotes? That's how I've always done it, not sure if it matters....
InstallUtill "C:\MyService.exe"
Sean
Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.
-
Jun 30th, 2004, 09:45 AM
#4
Addicted Member
You don't need the quotes. Just type as in my example.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|