.NET 4 Framework fails to install with the error "Fatal error during installation".
On reviewing the installer log, you see the following:
MSI (s) (D8:24) [13:47:17:038]: Created Custom Action Server with PID 2448 (0x990).
MSI (s) (D8:8C) [13:47:17:083]: Running as a service.
MSI (s) (D8:8C) [13:47:17:085]: Custom Action Server rejected - Wrong Context
MSI (s) (D8:24) [13:47:17:089]: CA Server Process has terminated.
Action start 13:47:17: SchedSecureObjects_x64.
MSI (s) (D8:9C) [13:47:17:090]: Note: 1: 1719
CustomAction SchedSecureObjects_x64 returned actual error code 1601 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (D8:9C) [13:47:17:092]: Product: Microsoft .NET Framework 4 Client Profile -- Error 1719.
The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance.
- Any GFI products requiring .NET 4 Framework
- Any 64-bit OS
The Windows Installer is trying to run 64-bit custom actions in 32-bit mode.
Remove the value WOW64 (=1) from HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\msiserver