Error in PostgreSQL installation of win10

problem

The installation of PostgreSQL in win10 reports an error. The 10, 11 and 12 versions downloaded from the official website are not available. The error is as follows

there has been an error. Error running icacls
"c:\Users\abdo\AppData\Local\Temp/postgresql_installer_b4be1776ca"/T/Q/grant: Access is denied


How to fix
install this version https://get.enterprisedb.com/postgresql/postgresql-11.2-1-windows-x64.exe

https://superuser.com/questions/1475822/postgresql-install-fail-in-windows-10-icacls-error-access-denied

Read More: