I know there’s a ton of threads about this, but the usual fixes did not work for me. Running as admin, unzipping with 7zip and running the exe inside of the installer, windows update, etc… I fixed it, so I’m making this thread with another solution.
Using procmon (sysinternals) I could see that it was trying to access a windows path.
[3221225506] CreateFile | C:\Windows\Installer\Razer\Installer2 Desired Access: Read Data/List Directory Disposition: Create → STATUS_OBJECT_PATH_NOT_FOUND
[3221225530] CreateFile | C:\Windows\Installer\Razer\Installer2\RazerInstaller.exe Desired Access: Generic Write Disposition: OverwriteIf → STATUS_OBJECT_NAME_NOT_FOUND
I first tried to make the directory using an admin command prompt and this command:
mkdir "C:\Windows\Installer\Razer\Installer2"
But it said access is denied. So, we must reset the permissions on the folder.
In the same elevated command prompt, run this command to fix the permissions:
icacls "C:\Windows\Installer" /reset /T /C
(/T — applies the operation recursively to all matching files and subdirectories. /C — continues even if errors are encountered, rather than stopping on the first failure)
Then run the installer again!! It finally installed. Hope this helps someone else!