Hi SyedMoizAkhtar,
I will give you advice from the following points:
- Fix Registry
A corrupt registry file can cause serious problems in your system, including this error code. If you have a backup of your registry files, you can restore your system's registry and fix the problem. However, modifying registry files is a bit complicated and can be dangerous to the system. Any invalid or inappropriate changes can have serious system consequences. Therefore, please backup your current registry file before making any changes. The operation steps are as follows:
(1) Navigate to the following directory:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows\AppInit_Dlls
Double-click "LoadAppInit_DLLs", and change its value to 0, restart the system to check if there is any error popping up. - Use System File Checker
System File Checker can help fix Windows system file corruption that might be causing this error.
"win+r" and enter "cmd" to open the run window, enter the command "sfc /scannow", wait for its scan to complete, it will automatically detect corrupt system files and replace them with new files in the cache. - Turn off DEP
Data Execution Prevention is a Windows in-built system-level memory protection feature that protects your system from damage caused by viruses and other security threats. However, some programs are not compatible with DEP feature in Windows and cause a Windows installation error 0xc0000005 error.
The specific operation steps are as follows:
(1) "win+r" and enter "sysdm.cpl", click Settings in Advanced;
(2) Click on Data Execution Protection tab and click ‘Turn on DEP for all programs and services except those I select’;
(3) Click ‘Add’ button and then browse and add all the executable (.exe) files that are causing the issue;
(4) Click OK and restart the system. - Driver corruption may also cause such errors
Open the command prompt in administrator mode, enter the command "chkdsk drive letter: /f /r", and press Enter.
Note: Before doing anything, if you are not sure what has been changed, be sure to back up your data to avoid data loss.
Hope my answer can help you!
Best Regards,
Xu Gu