Windows Defender / Norton Max CPU on starting services, install fails - Advanced Installer Community
RichardGrimmer
Posts: 3
Joined: Mon Mar 27, 2023 1:50 pm

Windows Defender / Norton Max CPU on starting services, install fails

I have an installer which installs an electron app, a DotNet windows service and a Python Windows service.

When the installer runs on a new machine and reaches the "Starting Services" step, Windows defender immediately maxes the CPU and the machine becomes unusable... it appears that the service start then times out eventually and reports that the services couldn't be started due to a permissions error - I think this is incorrect, since after a few attempts, the installer does eventually complete and the services run correctly

We're also seeing this on a machine with Norton, which also maxes CPU.

On machines where it does complete, it still maxes the CPU, but doesn't seem to time out

I can't disable AV for the install clearly, and Group policy to limit defender CPU load is not an option since this will be a user-installable system

Any ideas of things to check?
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Windows Defender / Norton Max CPU on starting services, install fails

Hello Richard,

I'm afraid this is not quite an issue related to Advanced Installer, but perhaps to the AV products you have installed.

For installing services, we use the InstallServices Action which is a Standard Action provided by Microsoft.

Most likely, those two AVs are trying to scan the EXE file (your .NET/Python file) that you are trying to create as a service and that's why the CPU maxes out.

To be fully honest with you, I'm not quite sure what we can do here as I've never heard of this scenario before.

Perhaps it would help digitally signing the files? Not sure, but this might give the AV some more trust in your executables.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”