Atlas-OS / Atlas

🚀 An open and lightweight modification to Windows, designed to optimize performance, privacy and usability.
https://atlasos.net
GNU General Public License v3.0
13.01k stars 507 forks source link

[BUG REPORT] - Errors 2503 and 2502 occur during installation/uninstallation of apps with .msi files #756

Closed F1zzTao closed 1 year ago

F1zzTao commented 1 year ago

Description

When attempting to install or uninstall an application using a .msi file on Windows, users may encounter errors 2503 and 2502, which prevents the installation or uninstallation process from completing successfully. However, if user will grant themselves full permissions on the C:\Windows\TEMP folder before attempting to install or uninstall an application with a .msi file, the app will be installed without any problems. Installing .msi file from cmd with Administrator privileges also works.

Steps to reproduce (add screenshots if applicable)

  1. Download and try to install any .msi file (like Epic Games Launcher installer) or try to uninstall any app
  2. Encounter error 2503
  3. Encounter error 2502

Expected behavior

The application should be installed/uninstalled successfully without any problems

Actual behavior (add screenshots if applicable)

Errors 2503 and 2502 appear, which prevent the installation or uninstallation process from completing successfully 2503 2502

Atlas Version

Atlas 10 22H2

Desktop information

Requisites

Additional content

No response

JayXTQ commented 1 year ago

This is fixed in the next update afaik, but for now https://cdn.discordapp.com/attachments/828192192703102976/1024023193490567258/Fix_error_2502_and_2503.cmd

he3als commented 1 year ago

https://github.com/Atlas-OS/Atlas/blob/main/src/Executables/Atlas/4.%20Troubleshooting/Fix%20Error%202502%20and%202503.cmd

Added a script to fix this.

Savillion commented 1 year ago

The culprit of this problem is disk cleaning codes, especially temp folder deletion. When its deleted, its created with different ownership. del /s /f /q C:\windows\temp\*.* rd /s /q C:\windows\temp md c:\windows\temp del /s /f /q %temp%\*.* rd /s /q %temp% md %temp% cleanmgr /verylowdisk

I only used this line of code in a clean Windows 10 (didn't install atlas) and still get 2502 error.

he3als commented 1 year ago

It has now been fixed https://forum.atlasos.net/d/555-fix-for-errors-2502-and-2503-with-installers