I’m encountering an issue while trying to install PostgreSQL on my Windows 11 machine. During the installation process, I receive an error message stating “Access is denied.” Below is a screenshot of the error:
There has been an error.
Error running C:WINDOWSSystem32icacls “C:UserstanmaAppDataLocalTemppostgresql_installer_a369da0643” /T /Q /grant “tanmay:(OI)(CI)F”: C:UserstanmaAppDataLocalTemppostgresql_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
Tanmay Rathod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.