Click here to Skip to main content
15,885,871 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Scenario: older 2.0 windows services installed on a server but if I try to use the newer 4.5 InstalUtil to uninstall I am getting an error.

We use an application that uses the InstalUtil service to uninstall/install windows services. Is there any way to check which framework version of InstalUtil was used to install the service? So that depending on which version was used I can pass the correct InstalUtil Path to the method
Posted
Comments
gggustafson 29-May-14 16:00pm    
Before you go further, what error?
karthik Udhayakumar 29-May-14 17:28pm    
older 2.0 windows services installed on a server but if I try to use the newer 4.5 InstalUtil to uninstall I am getting an error.What this means?Use Improve question wisely to get some answers from the community.
pmcm 30-May-14 3:21am    
The Transaction Was Aborted
Executing command "C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe /u /LogToConsole=true "D:\srvapps\MedBill\MedBill.exe"" (Timeout is set to 240000 ms):
2014-05-28 10:10:48 info [native] No Registry-Settings exist for this process
2014-05-28 10:10:48 info [native] Agent has no active settings - running normally
Microsoft (R) .NET Framework Installation utility Version 4.0.30319.17929
Copyright (C) Microsoft Corporation. All rights reserved.
The uninstall is beginning.
See the contents of the log file for the D:\srvapps\MedBill\MedBill.exe assembly's progress.
The file is located at D:\srvapps\MedBill\MedBill.InstallLog.
Uninstalling assembly 'D:\srvapps\MedBill\MedBill.exe'.
Affected parameters are:
logtoconsole = true
logfile = D:\srvapps\MedBill\MedBill.InstallLog
assemblypath = D:\srvapps\MedBill\MedBill.exe
The file containing the saved state for the D:\srvapps\MedBill\MedBill.exe assembly, located at D:\srvapps\MedBill\MedBill.InstallState, could not be read, and the file might have been corrupted. The uninstall will continue without the saved information.
An exception occurred during the uninstallation of the EPSInstaller installer.
System.Configuration.Install.InstallException: Null savedState param. Possible cause: Missing or corrupt Installstate file.
An exception occurred while uninstalling. This exception will be ignored and the uninstall will continue. However, the application might not be fully uninstalled after the uninstall is complete.
The uninstall has completed.
An exception occurred while uninstalling. This exception will be ignored and the uninstall will continue. However, the application might not be fully uninstalled after the uninstall is complete.

Service MedBill found. Uninstall failed!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900