How to fix errors when installing and uninstalling programs on Windows (sometimes including code 2502 or 2503):
- Home
- /
- Uncategorized
- /
- How to fix errors...
Written by Ian Britten and Tibby Fielding
Are you having issues when installing and uninstalling programs on your Windows computer?
Sometimes, but not always, you may receive error messages that contain the code 2502 or 2503. A Windows computer has a built-in Windows account called Trusted Installer which assists in installing, modifying and removing updates and other Windows components. Over time your computer can become corrupted which causes the Trusted Installer to lose some of its access to the Temp Folder which holds temporary files used during installation. This can cause programs to stop installing or uninstalling all together.
To fix these issues, follow the steps below:
Step 1:
In the search bar type ‘cmd.’
Next, from the menu, right click ‘Command Prompt App’ and select ‘Run as administrator.’
Click ‘yes’ to the pop up.
![Screenshot 2022-11-09 at 10.16.49 AM](https://advyon.com/wp-content/uploads/2022/11/Screenshot-2022-11-09-at-10.16.49-AM-1024x759.png)
Step 2:
Copy and paste the following commands in the command prompt box and press the ‘Enter’ key:
TAKEOWN /F C:\Windows\Temp /R
Icacls C:\Windows\Temp /Q /T /C /RESET
![Screenshot 2022-11-09 at 10.21.24 AM](https://advyon.com/wp-content/uploads/2022/11/Screenshot-2022-11-09-at-10.21.24-AM.png)
Step 3:
Open ‘File Explorer.’
Navigate to C:\Windows\Temp.
Right click the ‘Temp folder.’ and select ‘Properties.’
![Screenshot 2022-11-09 at 10.22.48 AM](https://advyon.com/wp-content/uploads/2022/11/Screenshot-2022-11-09-at-10.22.48-AM.png)
Step 4:
From the ‘Properties’ menu, select the ‘Security’ tab.
At the bottom of the Security Tab, select “Advanced.’
![Screenshot 2022-11-09 at 10.24.46 AM](https://advyon.com/wp-content/uploads/2022/11/Screenshot-2022-11-09-at-10.24.46-AM.png)
Step 5:
At the top of the window, next to ‘Owner:’, select Change.
![Screenshot 2022-11-09 at 10.26.59 AM](https://advyon.com/wp-content/uploads/2022/11/Screenshot-2022-11-09-at-10.26.59-AM.png)
Step 6:
In the Advanced Security Settings Window, press the button named ‘Locations…’.
![Screenshot 2022-11-09 at 10.28.24 AM](https://advyon.com/wp-content/uploads/2022/11/Screenshot-2022-11-09-at-10.28.24-AM.png)
Step 7:
In the Locations window, select your device name under ‘Location:’.
Select’ OK’
![Screenshot 2022-11-09 at 10.29.27 AM](https://advyon.com/wp-content/uploads/2022/11/Screenshot-2022-11-09-at-10.29.27-AM.png)
Step 8:
In the textbox, ‘Enter the object name to select’ type: NT Service\TrustedInstaller
Next, select ‘Check Names’.
![Screenshot 2022-11-09 at 10.30.32 AM](https://advyon.com/wp-content/uploads/2022/11/Screenshot-2022-11-09-at-10.30.32-AM.png)
Step 9:
Once TrustedInstaller displays (with underline), select ‘OK’.
![Screenshot 2022-11-09 at 10.32.01 AM](https://advyon.com/wp-content/uploads/2022/11/Screenshot-2022-11-09-at-10.32.01-AM.png)
Step 10:
At the bottom of the Advanced Security window, click ‘Apply’ to set TrustedInstaller as owner.
![Screenshot 2022-11-09 at 10.36.30 AM](https://advyon.com/wp-content/uploads/2022/11/Screenshot-2022-11-09-at-10.36.30-AM.png)
When you are finished giving Trusted Installer the access it needs, you should not have further issues installing or removing programs.