Quantcast
Channel: SQL Archives - SQL Authority with Pinal Dave
Viewing all articles
Browse latest Browse all 594

SQL SERVER – Installation Failure – Specified Instance Via Transform is Already Installed. MSINEWINSTANCE Requires a New Instance that is not Installed

$
0
0

This is one of the situations where my client installed one clustered instance of SQL Server and the second one was failing. In this blog, I would share my findings of error: Specified instance via transform is already installed. MSINEWINSTANCE requires a new instance that is not installed.

THE SITUATION

My client tried installing SQL Server clustered instance with name Contoso. It failed with below error in Summary.txt file.

Feature: Database Engine Services
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x86D80052
Error description: The common properties for resource ‘SQL IP Address 1 (CONTOSO)’ could not be saved. Error: There was a failure to call cluster code from a provider. Exception message: The cluster IP address is already in use.
MSI (s) (A0:54) [16:36:00:810]: Specified instance {863E9807-97F0-417A-9957-DE4372A13404} via transform :InstID02.mst;:InstName02.mst is already installed. MSINEWINSTANCE requires a new instance that is not installed.

It looks like we haven’t un-installed the previous installation which was a failure. As per one of the StackExchange link it mentioned “This means in the windows installer registry there are remnants of the previous installation which has left orphaned entries there. You have to manually remove it or use some tool.”

THE SOLUTION

Now, we knew that we need to clean up SQL install but the problem was that none of the uninstall UI options were showing us failed instance. I found below tool to look into a registry of MSI database.

I also found an interesting WMIC command which also helped me.

WMIC PRODUCT Where "Caption like '%SQL%'" GET Caption, IdentifyingNumber

Here is the output of the command from my lab server.

SQL SERVER - Installation Failure - Specified Instance Via Transform is Already Installed. MSINEWINSTANCE Requires a New Instance that is not Installed msinew-err-01

As per Microsoft’s blog, we did cleanup using a list of all the GUIDs for which we needed to run uninstaller using below from command prompt.

Msiexec /X {GUID}

Almost all components got removed and few failed. There were some stale entries in the below keys.

HKEY_CLASSES_ROOT\Installer\Products\
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products

We need to search for {GUID} and remove the hive which holds it.

Always take backup of the registry before making any change and don’t tell anyone how you solved the issue. Please comment and let me know if you found some other tricks.

Reference: Pinal Dave (https://blog.sqlauthority.com)

First appeared on SQL SERVER – Installation Failure – Specified Instance Via Transform is Already Installed. MSINEWINSTANCE Requires a New Instance that is not Installed


Viewing all articles
Browse latest Browse all 594

Trending Articles