Trouble installing Windows Service created with VB.NET



I am trying to figure out how to make Windows Services using VB.NET. I found
an article that seemed simple yet complete enough that I decided to try it.
This article is located at:

http://www.devarticles.com/c/a/VB.Net/Creating-A-Windows-Service-in-VB.NET/

The point at which I had a problem was in the section labeled "Installing
the Service"

http://www.devarticles.com/c/a/VB.Net/Creating-A-Windows-Service-in-VB.NET/2/

When I tried to do this part, I recieved the following error:


C:\>C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\installutil.exe
C:\Documents and Settings\Nathan Sokalski\My Documents\Visual Studio
Projects\WebApplication1\WindowsService1\bin\WindowsService1.exe
Microsoft (R) .NET Framework Installation utility Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Exception occurred while initializing the installation:
System.IO.FileNotFoundException: File or assembly name Documents, or one of
its dependencies, was not found..

C:\>


I know that the error is referring to the fact that it doesn't like the
spaces in the directory "Documents and Settings" (and probably some of the
other directories with spaces), but it has been such a long time since I
have had to manually convert from longname format to, I am assuming, 8.3
format. I seem to remember their being some command line command that can do
this for you, but if their is I don't remember it. Since this is the
directory that Visual Studio puts my files in, I would like to know the
simplest way to execute the command. Thanks.
--
Nathan Sokalski
njsokalski@xxxxxxxxxxx
http://www.nathansokalski.com/


.



Relevant Pages

  • Re: Standalone gnu-diff like tool in Java
    ... If all I want are the standard shell and command line tools is there ... any advantage in using Cygwin instead of Windows Services for UNIX ...
    (comp.lang.java.programmer)
  • Re: Windows Services
    ... I've built some .NET windows services recently. ... Jeff ... One just waits for a command ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Windows service - Nightly task
    ... Are there any reliability issues around windows services? ... What you should do is create a command line exe which will make the call ... I want to run a webservice method every night at a specified time, ...
    (microsoft.public.dotnet.languages.csharp)
  • Windows Services
    ... I have written two simple Windows Services. ... One just waits for a command to ... However when I load and run ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Windows Services
    ... > I have written two simple Windows Services. ... One just waits for a command to ... 'OnStart' as soon as possible. ... M S Herfried K. Wagner ...
    (microsoft.public.dotnet.languages.vb)