0% found this document useful (0 votes)
41 views1 page

Sursa Microsoft To Install Your Service Manually: Installutil .Exe

To manually install a service created in Visual Studio, run InstallUtil.exe from the Developer Command Prompt located in the Visual Studio Tools menu, passing the executable file path as a parameter. To uninstall, use InstallUtil.exe with the /u parameter followed by the executable path. You may need to additionally use the sc delete command to fully remove registry entries if the executable is later deleted.

Uploaded by

mateigeorgescu80
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views1 page

Sursa Microsoft To Install Your Service Manually: Installutil .Exe

To manually install a service created in Visual Studio, run InstallUtil.exe from the Developer Command Prompt located in the Visual Studio Tools menu, passing the executable file path as a parameter. To uninstall, use InstallUtil.exe with the /u parameter followed by the executable path. You may need to additionally use the sc delete command to fully remove registry entries if the executable is later deleted.

Uploaded by

mateigeorgescu80
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Sursa Microsoft

To install your service manually


1. On the Windows Start menu or Start screen, choose Visual Studio , Visual Studio Tools,
Developer Command Prompt.
A Visual Studio command prompt appears.
2. Access the directory where your project's compiled executable file is located.
3. Run InstallUtil.exe from the command prompt with your project's executable as a parameter:
installutil <yourproject>.exe

If youre using the Visual Studio command prompt, InstallUtil.exe should be on the system
path. If not, you can add it to the path, or use the fully qualified path to invoke it. This tool is
installed with the .NET Framework, and its path is %WINDIR
%\Microsoft.NET\Framework[64]\<framework_version>. For example, for the 32-bit
version of the .NET Framework 4 or 4.5.*, if your Windows installation directory is
C:\Windows, the path is C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe.
For the 64-bit version of the .NET Framework 4 or 4.5.*, the default path is
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe.

To uninstall your service manually


1. On the Windows Start menu or Start screen, choose Visual Studio, Visual Studio Tools,
Developer Command Prompt.
A Visual Studio command prompt appears.
2. Run InstallUtil.exe from the command prompt with your project's output as a parameter:
installutil /u <yourproject>.exe

3. Sometimes, after the executable for a service is deleted, the service might still be present in
the registry. In that case, use the command sc delete to remove the entry for the service from
the registry.

You might also like