Tuesday, May 19, 2009

Error message: The installer has encountered an unexpected error: code is 2203


The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The eorror code is 2203

There are a couple of cases where I have seen this error in the past for the .NET Framework, windows live messenger and other types of MSI-based setup packages. There are two reasons for this.
Cause 1:
Permission problems for the %windir%\installer folder - If the Windows Installer service does not have sufficient permissions to read and write to this folder, the installation will fail.
Resolution:

Typically the subinacl tool described here will fix the permissions and then you can re-run setup and it will work correctly.

Here are the steps to follow to repair permissions to workaround this issue:
Download the SubInACL tool from this Microsoft site (http://www.microsoft.com/downloads/details.aspx?FamilyId=E8BA3E56-D8FE-4A91-93CF-ED6985E3927B&displaylang=en) and install it. By default it will install to c:\Program Files\Windows Resource Kits\Tools
Go to the Start menu, choose Run and type cmd
Type cd /d %ProgramFiles%\Windows Resource Kits\Tools to change directories to the folder that SubInACL is installed to
Type notepad reset.cmd and press yes to create a new file named reset.cmd in c:\Program Files\Windows Resource Kits\Tools
Copy and paste the following contents into reset.cmd and then save and close it (or download it from here and rename it from reset.cmd.txt to reset.cmd):subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f subinacl /subdirectories %SystemDrive% /grant=administrators=f subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=system=f subinacl /subkeyreg HKEY_CURRENT_USER /grant=system=f subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=system=f subinacl /subdirectories %SystemDrive% /grant=system=f
Type reset.cmd and press enter to run the SubInACL tool (you will need to have adminstrator privileges for this to run correctly). This tool will take several minutes to run
After reset.cmd completes, try to install the .NET Framework 2.0 or VS 2005 again


Cause 2:
Anti-virus software - If you have a real-time virus scanner enabled, and it happens to be scanning the file in %windir%\installer at the same time as setup is trying to open the file and install from it, you will get this type of error.

Resolution:

This is generally a timing issue, and in this case re-running setup will fix it. Alternatively, you can disable real-time virus scanning during installation, but if you do this please be aware of the security implications of doing so and either install while not connected to the network, or if that is not possible, make sure to immediately re-enable the virus scanner after setup completes.

No comments:

Post a Comment