Golang 1.19 was just released and I couldn’t wait to update to the latest version.

My OS is Win10 and when I installed it there was an exception.

 1  The installer has encountered an unexpected errorinstalling this package. This may indicate a problem withthis package. The error code is 2502. 

 1  The installer has encountered an unexpected errorinstalling this package. This may indicate a problem withthis package. The error code is 2503. 

## Solution

Modify the permissions of the C:\Windows\Temp folder.

Right-click the folder and select Security in the pop-up dialog box. Then edit the user’s permissions and give them “Full Control” and “Modify” permissions.

## Re-install

 1 2  C:\Users\\Desktop>go version go version go1.19 windows/amd64