Sometimes Windows Installer starts to behave unexpectedly in various versions of Windows, including Windows 10, Windows 8.1 and Windows 7. Every error message has an error code but there is no further information given to the user about what action he should take to fix the error. I suddenly started facing one such error out of nowhere. While uninstalling any app which is shipped as an MSI package, it showed errors 2502 and 2503 and then the installation or uninstallation failed. Here is what these errors mean and how you can fix them easily.
MSI installer errors 2502 and 2503 in Windows 10, Windows 8.1 and Windows 7 usually indicate that the folder C:\Windows\Temp has incorrect NTFS permissions.
To let Windows Installer operate normally, this folder need to have full write access permissions and ownership for your user account. In some cases (depending on how messed up your folder permissions are), this won't be enough. You need to give full access permissions to the Administrators group as well for the folder C:\Windows\Temp. Note that this is not the same folder as %tmp% which can be C:\Users\\AppData\Local\Temp\. Here is how you can fix these MSI errors.
Before you proceed, I recommend you to read the following article: How to take ownership and get full access to files and folders in Windows 10. It contains useful information about changing NTFS permissions.
- Open File Explorer, and then locate the file or folder you want to take ownership of. In our case, it is the folder
- Right-click the file or folder, click Properties, and then click the Security tab.
- Click the Advanced button. The "Advanced Security Settings" window will appear.
- Click the Add button. The "Permission Entry" window will appear on the screen:
- Click "Select a principal" and select your user account:
- Set permissions to "Full control":
Repeat the same for the built-in "Administrators" group.
Now, try to uninstall or install your MSI package. Everything should work properly now.