Deleting the file manually and having an NSIS installer uninstall it with doesn't work because of WFP.
Here is the command I tried:
!insertmacro InstallLib REGDLL NOTSHARED REBOOT_NOTPROTECTED debug\quartz.dll $SYSDIR\quartz.dll $SYSDIR
but this doesn't work because the current version is newer.
I found the information on the ability to call a system DLL in the Help file and found some information about disabling WFP here:
Real-Time CPU Optimization and Automation. Keep your PC responsive during high CPU loads and automate process settings with rules. Apps run YOUR WAY!
Is there a way to use System::Call to call:
SetSfcFileException(0, L"c:\\windows\\system32\quartz.dll",-1);
is SFC_OS.DLL?
I noticed that the System:Call docs talk about strings as parameters but not wide strings. It would obviously be better if the Windows system path used $SYSDIR instead of being hard coded.
Or maybe there is a better technique than using SFC_OS?
Thanks.