When installing the msi program in Win10, the following error solutions are reported: 2503 and 2502. win102503 and
After upgrading the system to win10, we re-built the development environment and reported errors 2503 and 2502 during scala installation,
I tried several methods to solve this problem. Now I want to list the three methods used in sequence:
1. Start the command prompt (Administrator)
Note: D: \ scala-2.11.8.ms with your installation path can be
Ii. Permanent Elevation of Privilege
First, configure the computer, select Local Group Policy Editor> Computer Configuration> management template> Windows Components> Windows Installer> always install with elevated permissions. Select enabled, click application.
Second, perform the following operations on user configuration and Computer Configuration:
Local Group Policy Editor --> User Configuration --> management template -- Windows Components --> Windows Installer --> always install with elevated permissions -- select Enabled, and click Application
III. C: \ Windows \ Temp folder NTFS permission
Go to C: \ Windows, find Temp, right-click Properties
Edit the current user permission, select "full control" and "modify", and click "Apply ".
In this way, the configuration has been completed.
4. Why is there another 4? Isn't there three methods?
I tried the first, second, and third methods in sequence. After trying the third method, I found that I was able to install it. I no longer reported the 2503 error. However, I found that no matter how I set the installation path, it installs it to the default path, that is, C: \ Program Files (x86) \ scala, however, scala installation paths cannot contain spaces, (), and other symbols. Therefore, scala cannot be used. At this time, we can review whether you have used the second method. When setting the elevation permission, do you want to set it to enabled?
In this case, you need to enable it and change it back to unset.
From the above three methods, we can know that the permission is actually because of the permission issue. Therefore, no matter how we perform the operation, we only need to improve the permission, but we didn't mention it.
The above three methods are described. There should be almost one solution to this problem, but they are not absolute. The problems vary from person to person.