dotnetmq icon indicating copy to clipboard operation
dotnetmq copied to clipboard

Install error missing DotNetMQ.InstallState

Open sonnguyenit opened this issue 7 years ago • 2 comments

I get error when install this service:

PS C:\Program Files\DotNetMQ> .\INSTALL_x64.bat

C:\Program Files\DotNetMQ>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\installutil DotNetMQ.exe
Microsoft (R) .NET Framework Installation utility Version 4.7.2556.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the C:\Program Files\DotNetMQ\DotNetMQ.exe assembly's progress.
The file is located at C:\Program Files\DotNetMQ\DotNetMQ.InstallLog.
Installing assembly 'C:\Program Files\DotNetMQ\DotNetMQ.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = C:\Program Files\DotNetMQ\DotNetMQ.exe
   logfile = C:\Users\sonnguyen\AppData\Local\Temp\DotNetMQ.InstallLog
Installing service DotNetMqService...
Creating EventLog source DotNetMqService in log Application...

An exception occurred during the Install phase.
System.UnauthorizedAccessException: Access to the path 'C:\Program Files\DotNetMQ\DotNetMQ.InstallState' is denied.

The Rollback phase of the installation is beginning.
See the contents of the log file for the C:\Program Files\DotNetMQ\DotNetMQ.exe assembly's progress.
The file is located at C:\Program Files\DotNetMQ\DotNetMQ.InstallLog.
Rolling back assembly 'C:\Program Files\DotNetMQ\DotNetMQ.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = C:\Program Files\DotNetMQ\DotNetMQ.exe
   logfile = C:\Users\sonnguyen\AppData\Local\Temp\DotNetMQ.InstallLog
An exception occurred during the Rollback phase of the System.Configuration.Install.AssemblyInstaller installer.
System.IO.FileNotFoundException: Could not find file 'C:\Program Files\DotNetMQ\DotNetMQ.InstallState'.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.

The Rollback phase completed successfully.

The transacted install has completed.
The installation failed, and the rollback has been performed.

C:\Program Files\DotNetMQ>net start DotNetMQ
The service name is invalid.

More help is available by typing NET HELPMSG 2185.
PS C:\Program Files\DotNetMQ> .\INSTALL_x64.bat

C:\Program Files\DotNetMQ>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\installutil DotNetMQ.exe
Microsoft (R) .NET Framework Installation utility Version 4.7.2556.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the C:\Program Files\DotNetMQ\DotNetMQ.exe assembly's progress.
The file is located at C:\Program Files\DotNetMQ\DotNetMQ.InstallLog.
Installing assembly 'C:\Program Files\DotNetMQ\DotNetMQ.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = C:\Program Files\DotNetMQ\DotNetMQ.exe
   logfile = C:\Users\sonnguyen\AppData\Local\Temp\DotNetMQ.InstallLog
Installing service DotNetMqService...
Creating EventLog source DotNetMqService in log Application...

An exception occurred during the Install phase.
System.UnauthorizedAccessException: Access to the path 'C:\Program Files\DotNetMQ\DotNetMQ.InstallState' is denied.

The Rollback phase of the installation is beginning.
See the contents of the log file for the C:\Program Files\DotNetMQ\DotNetMQ.exe assembly's progress.
The file is located at C:\Program Files\DotNetMQ\DotNetMQ.InstallLog.
Rolling back assembly 'C:\Program Files\DotNetMQ\DotNetMQ.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = C:\Program Files\DotNetMQ\DotNetMQ.exe
   logfile = C:\Users\sonnguyen\AppData\Local\Temp\DotNetMQ.InstallLog
An exception occurred during the Rollback phase of the System.Configuration.Install.AssemblyInstaller installer.
System.IO.FileNotFoundException: Could not find file 'C:\Program Files\DotNetMQ\DotNetMQ.InstallState'.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.

The Rollback phase completed successfully.

The transacted install has completed.
The installation failed, and the rollback has been performed.

C:\Program Files\DotNetMQ>net start DotNetMQ
The service name is invalid.

More help is available by typing NET HELPMSG 2185.

sonnguyenit avatar Apr 04 '18 02:04 sonnguyenit

i am also getting exactly the same error on windows 10.

kkarakk avatar Oct 13 '18 08:10 kkarakk

The error occurs when the service is not started in administrator mode, there are two solutions, one is to right click the file Install and open it as administrator or do it from cmd.

cristianFaz avatar Oct 24 '18 13:10 cristianFaz