web analytics
Installing a Windows Service using InstallUtil.exe Options
codeling
Posted: Thursday, June 16, 2016 2:55:54 PM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 832
Points: 3483

When running InstallUtil.exe it has to be run from the .Net folder matching your machines setup, for instance if you have a 64Bit machine you have to run InstallUtil.exe from the 64Bit .Net folder “C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe” and for a 32Bit machine you can use the normal .Net folder “C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe”

The following command executes the installer components in the assembly myAssembly.exe.

installutil myAssembly.exe

The following command executes the uninstaller components in the assembly myAssembly.exe.

installutil /u myAssembly.exe
Sponsor
Posted: Thursday, June 16, 2016 2:55:54 PM
codeling
Posted: Thursday, June 16, 2016 2:57:34 PM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 832
Points: 3483

If you run Installutil.exe against an assembly without specifying any options, it places the following three files into the assembly's directory:

  • InstallUtil.InstallLog - Contains a general description of the installation progress.

  • assemblyname.InstallLog - Contains information specific to the commit phase of the installation process. For more information about the commit phase, see the Commit method.

  • assemblyname.InstallState - Contains data used to uninstall the assembly.

codeling
Posted: Thursday, June 16, 2016 2:58:24 PM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 832
Points: 3483

Starting with the .NET Framework version 2.0, the 32-bit version of the common language runtime (CLR) ships with only the 32-bit version of the Installer tool, but the 64-bit version of the CLR ships with both 32-bit and 64-bit versions of the Installer tool. When using the 64-bit CLR, use the 32-bit Installer tool to install 32-bit assemblies, and the 64-bit Installer tool to install 64-bit and Microsoft intermediate language (MSIL) assemblies. Both versions of the Installer tool behave the same.

codeling
Posted: Friday, March 10, 2017 2:12:25 PM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 832
Points: 3483

If you’re 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.

Users browsing this topic
Guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.


© 2017 Digcode.com. All rights reserved.