IT Support from Penn Geeks

How to fix error code 5 or 0×5 or 0×80070005 in setup package fails

Whenever you have MSI installer error, you can try this script to fix it. It’s normally caused by permission of Access Control List (ACL). This article describes a fix with Windows Resource Kit called SubInACL.

SubInACL tool is most useful when a setup package fails with error code 5 or 0x5 or 0x80070005. SubInACL can also help resolve Internet Explorer script errors caused by incorrect access control permissions for specific user accounts on the system.

To fix Microsoft Installer MSI error, follow these instructions:

  1. Download SubInACL Tool from Microsoft website.
  2. Install it, by default it will install to c:\Program Files\Windows Resource Kits\Tools.
  3. Open Notepad.exe and copy & paste the follow code, then save it as FixMSI.cmd. You will need to enable file extension to be able to change file type:cd /d "%programfiles%\Windows Resource Kits\Tools"

     

    subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /setowner=administrators > %temp%\subinacl_output.txt

    subinacl /keyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /setowner=administrators >> %temp%\subinacl_output.txt

     

    subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %temp%\subinacl_output.txt

    subinacl /keyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %temp%\subinacl_output.txt

     

    subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %temp%\subinacl_output.txt

    subinacl /keyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %temp%\subinacl_output.txt

    subinacl /subdirectories %programfiles%\ /grant=administrators=f /grant=system=f /grant=users=e >> %temp%\subinacl_output.txt

    subinacl /subdirectories %windir%\ /grant=administrators=f /grant=system=f /grant=users=e >> %temp%\subinacl_output.txt

  4. Change the values named YOURUSERNAME to be the Windows user account that you are logged in with.
  5. Save the file, type in the file name and select All File from Save as Type.
  6. Run the FixMSI.cmd script with Administrator account.

Related posts:

  1. How to fix error code “0×80070646,” “646,” or “1606″ running Windows Office Update
  2. How to fix crcdisk.sys error in Windows Vista
  3. How to fix DCOM Error
  4. How to fix Windows fails to start Windows Firewall service (0×5)
  5. How to fix The messaging interface has returned an unknown error. If the problem persists, restart outlook

Leave a Response