I'm trying to use this code to check for the presence of Windows Defender:
code:
if (File.Exists("%ProgramFiles%\\Windows Defender\\MSASCui.exe") == true)
However it doesn't work, lol. It returns that windows defender isn't installed, even though it 100% is.
This is definitely the problem as if i change it back to look for C:\Program Files\Windows Defender\MSASCui.exe then it finds it.
Any ideas what I'm doing wrong?