WSUS Install Fails; There is a problem with this Windows Installer package.

I am trying to install WSUS on Windows Server 2003 R2 and the installer fails with the above error message.

The log files are shown here:

**********

**** 2006-06-01 14:29:15  13:29:15   Executing External Command: C:WINDOWSMicrosoft.NETFrameworkv1.1.4322aspnet_regiis.exe -ir *****

***** 2006-06-01 14:29:26  13:29:26   External Command Exited, Return Code: 0 *****

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the C:Program FilesUpdate ServicesSetupbinMicrosoft.UpdateServices.Setup.CustomActions.dll assembly’s progress.
The file is located at C:Program FilesUpdate ServicesLogFilesWSUSCa_060601_1426.log.
Installing assembly ‘C:Program FilesUpdate ServicesSetupbinMicrosoft.UpdateServices.Setup.CustomActions.dll’.
Affected parameters are:
   categorymessagefile = C:Program FilesUpdate ServicesCommonEventCategories.dll
   logtoconsole =
   assemblypath = C:Program FilesUpdate ServicesSetupbinMicrosoft.UpdateServices.Setup.CustomActions.dll
   showcallstack =
   logfile = C:Program FilesUpdate ServicesLogFilesWSUSCa_060601_1426.log
   wsusinstall =
Creating performance counter category WSUS: Reporting Web Service.

An exception occurred during the Install phase.
System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.Int32.Parse(String s, IFormatProvider provider)
   at System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp)
   at System.Diagnostics.PerformanceCounterLib.get_NameTable()
   at System.Diagnostics.PerformanceCounterLib.get_CategoryTable()
   at System.Diagnostics.PerformanceCounterLib.CategoryExists(String machine, String category)
   at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData)
   at System.Diagnostics.PerformanceCounterInstaller.Install(IDictionary stateSaver)
   at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
   at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
   at System.Configuration.Install.AssemblyInstaller.Install(IDictionary savedState)
   at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
   at System.Configuration.Install.TransactedInstaller.Install(IDictionary savedState)

The Rollback phase of the installation is beginning.
See the contents of the log file for the C:Program FilesUpdate ServicesSetupbinMicrosoft.UpdateServices.Setup.CustomActions.dll assembly’s progress.
The file is located at C:Program FilesUpdate ServicesLogFilesWSUSCa_060601_1426.log.
Rolling back assembly ‘C:Program FilesUpdate ServicesSetupbinMicrosoft.UpdateServices.Setup.CustomActions.dll’.
Affected parameters are:
   categorymessagefile = C:Program FilesUpdate ServicesCommonEventCategories.dll
   logtoconsole =
   assemblypath = C:Program FilesUpdate ServicesSetupbinMicrosoft.UpdateServices.Setup.CustomActions.dll
   showcallstack =
   logfile = C:Program FilesUpdate ServicesLogFilesWSUSCa_060601_1426.log
   wsusinstall =
Restoring performance counter data to previous state for performance counter category WSUS: Reporting Web Service.
An exception occurred during the Rollback phase of the System.Diagnostics.PerformanceCounterInstaller installer.
System.ArgumentException: Cannot delete a subkey tree because the subkey does not exist.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at Microsoft.Win32.RegistryKey.DeleteSubKeyTree(String subkey)
   at System.Diagnostics.PerformanceCounterInstaller.DoRollback(IDictionary state)
   at System.Diagnostics.PerformanceCounterInstaller.Rollback(IDictionary savedState)
   at System.Configuration.Install.Installer.Rollback(IDictionary savedState)
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 uninstall is beginning.
See the contents of the log file for the C:Program FilesUpdate ServicesSetupbinMicrosoft.UpdateServices.Setup.CustomActions.dll assembly’s progress.
The file is located at C:Program FilesUpdate ServicesLogFilesWSUSCa_060601_1426.log.
Uninstalling assembly ‘C:Program FilesUpdate ServicesSetupbinMicrosoft.UpdateServices.Setup.CustomActions.dll’.
Affected parameters are:
   logtoconsole =
   assemblypath = C:Program FilesUpdate ServicesSetupbinMicrosoft.UpdateServices.Setup.CustomActions.dll
   showcallstack =
   logfile = C:Program FilesUpdate ServicesLogFilesWSUSCa_060601_1426.log
   wsusinstall =
Removing performance counter category WSUS: Server Web Methods.
An exception occurred during the uninstallation of the System.Diagnostics.PerformanceCounterInstaller installer.
System.ComponentModel.Win32Exception: The configuration registry key is invalid
   at System.Diagnostics.PerformanceCounterLib.RegisterFiles(String arg0, Boolean unregister)
   at System.Diagnostics.PerformanceCounterLib.UnregisterCategory(String categoryName)
   at System.Diagnostics.PerformanceCounterCategory.Delete(String categoryName)
   at System.Diagnostics.PerformanceCounterInstaller.Uninstall(IDictionary savedState)
   at System.Configuration.Install.Installer.Uninstall(IDictionary savedState)
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.
Removing performance counter category WSUS: Server Web Service.
An exception occurred during the uninstallation of the System.Diagnostics.PerformanceCounterInstaller installer.
System.ComponentModel.Win32Exception: The configuration registry key is invalid
   at System.Diagnostics.PerformanceCounterLib.RegisterFiles(String arg0, Boolean unregister)
   at System.Diagnostics.PerformanceCounterLib.UnregisterCategory(String categoryName)
   at System.Diagnostics.PerformanceCounterCategory.Delete(String categoryName)
   at System.Diagnostics.PerformanceCounterInstaller.Uninstall(IDictionary savedState)
   at System.Configuration.Install.Installer.Uninstall(IDictionary savedState)
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.
Removing performance counter category WSUS: Client Web Service Methods.
An exception occurred during the uninstallation of the System.Diagnostics.PerformanceCounterInstaller installer.
System.ComponentModel.Win32Exception: The configuration registry key is invalid
   at System.Diagnostics.PerformanceCounterLib.RegisterFiles(String arg0, Boolean unregister)
   at System.Diagnostics.PerformanceCounterLib.UnregisterCategory(String categoryName)
   at System.Diagnostics.PerformanceCounterCategory.Delete(String categoryName)
   at System.Diagnostics.PerformanceCounterInstaller.Uninstall(IDictionary savedState)
   at System.Configuration.Install.Installer.Uninstall(IDictionary savedState)
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.
Removing performance counter category WSUS: Client Web Service.
An exception occurred during the uninstallation of the System.Diagnostics.PerformanceCounterInstaller installer.
System.ComponentModel.Win32Exception: The configuration registry key is invalid
   at System.Diagnostics.PerformanceCounterLib.RegisterFiles(String arg0, Boolean unregister)
   at System.Diagnostics.PerformanceCounterLib.UnregisterCategory(String categoryName)
   at System.Diagnostics.PerformanceCounterCategory.Delete(String categoryName)
   at System.Diagnostics.PerformanceCounterInstaller.Uninstall(IDictionary savedState)
   at System.Configuration.Install.Installer.Uninstall(IDictionary savedState)
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.
Removing performance counter category WSUS: Reporting Web Service.
An exception occurred during the uninstallation of the System.Diagnostics.PerformanceCounterInstaller installer.
System.InvalidOperationException: Cannot delete Performance Category because this category is not registered or is a system category.
   at System.Diagnostics.PerformanceCounterCategory.Delete(String categoryName)
   at System.Diagnostics.PerformanceCounterInstaller.Uninstall(IDictionary savedState)
   at System.Configuration.Install.Installer.Uninstall(IDictionary savedState)
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.

**********

2006-06-01 14:26:53  Success   MWUSSetup          WSUS Server Setup Started.
2006-06-01 14:26:53  Success   MWUSSetup          Parsing command line arguments
2006-06-01 14:26:53  Success   MWUSSetup          WSUS Setup: Performing Install
2006-06-01 14:26:54  Success   MWUSSetup          Validating pre-requisites
2006-06-01 14:26:54  Success   MWUSSetup          .Net framework SP1 is detected on this machine
2006-06-01 14:26:54  Success   MWUSSetup          Creating WSUS registry key
2006-06-01 14:26:54  Success   MWUSSetup          Initializing installation details
2006-06-01 14:26:54  Success   MWUSSetup          Initializing wizard
2006-06-01 14:29:04  Error     MWUSSetup          GetProcAddress failed in SKU Check (Error 0x8007007F: The specified procedure could not be found.)
2006-06-01 14:29:04  Error     MWUSSetup          GetSqlFlavor failed (Error 0x8007007F: The specified procedure could not be found.)
2006-06-01 14:29:04  Error     MWUSSetup          Failed to determine Sql type of instance. Assuming it to be SQL… (Error 0x8007007F: The specified procedure could not be found.)
2006-06-01 14:29:15  Success   MWUSSetup          Installing ASP.Net
2006-06-01 14:29:26  Success   MWUSSetup          Asp.Net is installed successfully
2006-06-01 14:29:26  Success   MWUSSetup          ASP.Net is installed successfully
2006-06-01 14:29:26  Success   MWUSSetup          MSXML2 is already installed on this machine
2006-06-01 14:29:26  Success   MWUSSetup          Installing WMSDE
2006-06-01 14:30:29  Success   MWUSSetup          WMSDE Installed Successfully
2006-06-01 14:30:31  Success   MWUSSetup          WMSDE is installed successfully
2006-06-01 14:30:31  Success   MWUSSetup          Initializing MWUS installation
2006-06-01 14:30:31  Success   MWUSSetup          Installing PSFSIP
2006-06-01 14:30:31  Success   MWUSSetup          PSFSIP Installed Successfully
2006-06-01 14:30:31  Success   MWUSSetup          Copying installation settings to the registry
2006-06-01 14:30:31  Success   MWUSSetup          Installing MSUS…
2006-06-01 14:30:31  Success   MWUSSetup          Installing MWUS With Command Line SETUP_EXE=1  WUS_INSTALLMODE=”128″ AUTHENTICATED_USERS=”NT AUTHORITYAuthenticated Users” CONTENT_LOCAL=”1″ SQLINSTANCE_NAME=”%computername%WSUS” CUSTOMACTION_LOG=”C:Program FilesUpdate ServicesLogFilesWSUSCa_060601_1426.log” REPLICA_PARENT
2006-06-01 14:30:32  Success   CustomActions.Dll  .Net framework path: C:WINDOWSMicrosoft.NETFrameworkv2.0.50727
2006-06-01 14:30:36  Success   CustomActions.Dll  Creating WSUS Administrators user group
2006-06-01 14:30:36  Success   CustomActions.Dll  WSUS Administrators user group already exists
2006-06-01 14:30:36  Success   CustomActions.Dll  Successfully created WSUS Administrators user group
2006-06-01 14:31:24  Error     MWUSSetup          MWUS Installation Failed (Error 0x00000643: Fatal error during installation.)
2006-06-01 14:31:24  Error     MWUSSetup          InstallMSUS failed (Error 0x80070643: Fatal error during installation.)
2006-06-01 14:31:24  Error     MWUSSetup          MWUS installation failed (Error 0x80070643: Fatal error during installation.)
2006-06-01 14:31:24  Error     MWUSSetup          PerformInstall failed (Error 0x80070643: Fatal error during installation.)
2006-06-01 14:31:24  Success   MWUSSetup          Rolling back Installation
2006-06-01 14:31:24  Success   MWUSSetup          WSUS Server installation failed. You can look at C:Program FilesUpdate ServicesLogFilesWSUSCa_060601_1426.log file to determine the cause of the failure
2006-06-01 14:31:37  Success   MWUSSetup          WMSDE Uninstall Succeeded
2006-06-01 14:31:37  Error     MWUSSetup          Failed to copy SetupUninstallHelper.exe to C:DOCUME~1ADMINI~1LOCALS~1Temp1UninstallHelper.exe (Error 0x80070003: The system cannot find the path specified.)
2006-06-01 14:31:37  Success   MWUSSetup          Insert string: %1 For more information, see the Setup logs “%2” and “%3” .
2006-06-01 14:31:37  Success   MWUSSetup          szErrorType: Microsoft Windows Server Update Services could not install WSUSService and the performance counters.
2006-06-01 14:31:37  Success   MWUSSetup          ErrorLog: C:Program FilesUpdate ServicesLogFilesWSUSCa_060601_1426.log
2006-06-01 14:31:37  Success   MWUSSetup          StringObtained: Microsoft Windows Server Update Services could not install WSUSService and the performance counters. For more information, see the Setup logs “C:Program FilesUpdate ServicesLogFilesWSUSCa_060601_1426.log” and “C:Program FilesUpdate ServicesLogFilesWSUSSet

**********

Any ideas what might be causing this?

I have the same problem since I updated my working WSUS with the new Service Pack 1 on Windows 2003 with SP1.  Even an uninstall, a complete remove of the db in SQL Server and the web service in IIS don’t help. Installing the previous version of WSUS generates the same error. I can’t get WSUS to work any more and we need it, especially for all recent the security updates.The first error in the log file is: An exception occurred during the Install phase.System.FormatException: Input string was not in a correct format.   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)Freddy/

In some threads on other sites I read about a problem with performance counters. And if you look in the logfiles & eventviewer something like that was mentioned (in my case it was).The suggested solution was:C:WINDOWSsystem32> lodctr /Rto rebuild performance counter library.It helped on my server (windows 2003 standard sp1)

I had the same issue on my win2k server.  I uninstalled WSUS SP1 and reinstalled it and got the same error.  On the WSUS server I manually ran a windows update for the server itself.  I selected “custom” nt express.  The in other software in the left panel select the Windows Installer.  Download and install the new installer.  Reboot and then re-install WSUS SP1 and error was gone.Hope this helps.  Please post your results.sssmith03