Software Management Solution Plug-in Install or upgrade fails. Exit code=1638

book

Article ID: 170154

calendar_today

Updated On:

Products

Software Management Solution

Issue/Introduction

Software Management Solution Plug-in Install or upgrade fails. Exit code=1638

Cause

There are registry keys left over that cause Windows Installer to think another version is already installed.

Resolution

We used a Run Script task to remove the registry keys that were causing problems. The following script may need to be changed based on the GUID of the old Plug-in install.

First, do a search in the registry for "Software Management Solution" under the HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall and Installer keys. The guid of the folder where the string is found (confirm it is the plug-in in the name) and use that in the scripts.

reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{21F0859D-BCB3-40C9-B83B-0BF049B7E82E}" /f

reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\D9580F123BCB9C048BB3B00F947B8EE2" /f