postgresqlinstallationpermissionswindow

Error: Access is Denied during PostgreSQL Installation on Windows 11


I'm encountering an issue while trying to install PostgreSQL on my Windows 11 machine. During the installation process, I received an error message stating "Access is denied." Below is a screenshot of the error:

There has been an error.

Error running C:\WINDOWS\System32\icacls "C:\Users\tanma\AppData\Local\Temp\postgresql_installer_a369da0643" /T /Q /grant "tanmay:(OI)(CI)F": C:\Users\tanma\AppData\Local\Temp\postgresql_installer_a369da0643\*: Access is denied.

I've tried the following solutions but the issue persists:

Running the installer as an administrator. Checking the permissions of the Temp directory. Disabling my antivirus software.

enter image description here


Solution

  • I also encountered the same issue. What i did was log out of my microsoft account and log in as local account in my computer. Make sure to log in as admin. Try installing it again