I purchased the latest Kaspersky early this month and that was the beginning of 3 weeks of grief!
The installer got to around 80% and then ended with a "Failed to initialize Microsoft .Net Framework. Please Reinstall it" error.
I made the usual mistake - check M$ tech support for a sensible solution
Run the .NET repair tool they said. Reinstalled NET core and desktop v4,5 and 6.
No fix.
OK - install later NET framework components v7 and v8. Nope, Kaspersky still isn't happy.
Time for tech support and 3 weeks of emails, suggestions, nonsense and log files later...
Their latest advice was that 3 environment variables were the issue:
DOTNET_GCName clrgc.dll
DOTNET_EnableWriteXorExecute 0
COMPlus_GCName clrgc.dll
I deleted those variables and Kapersky fired up!
I rebooted and COMPlus_GCName and DOTNET_EnableWriteXorExecute got reset into the environment each boot.
hmmm.. something's adding them each boot, and to cut a long story short, it's DisplayFusion.
(which I found out by sheer chance while trying to uninstall .NET v8 - locked by DisplayFusion. Ah ha!)
So...the question is - what do I do about this. DisplayFusion can't load with Windows, so what are the options/fixes? Can we stop DF from always adding these environment variables so it's not a constant issue?