Jump to content

Prevent Process from Starting in Windows


Recommended Posts

I run a Windows business application that I need to have operating 24x7, unless I decide there can be some downtime (and always planned).

However, this program decides to auto-update itself, sometimes seemingly randomly downloading and then shutting itself down and applying updates. Then it loads itself back up again.

I noticed there is an installer application process that gets started by the application.

I know I could probably use an anti-virus program to block the specific process, but that seems like overkill. To have just the anti-virus running for that purpose.

Is there a way with AutoIt to detect when this installer process gets started and block it/terminate it? Is there a way to do it where it won't constantly take up too much resources of the computer's CPU watching for the process?

Any help (or just ideas) on this is greatly appreciated, as the auto-update policy of the application is just "bad news" every time it happens.

Link to comment
Share on other sites

Thanks for the the advice. If using processclose on an infinite loop, that loop would need to run a few times every second to prevent the update program from triggering. I noticed once it triggers, it instantly triggers the other program processes to then go into a shutdown.

Thus, is there an easy way to trap the process from running in a similar way that an anti-virus program would?

I wish I could disable auto-update, but the company in their need to keep everyone up-to-date, now forces an auto-update policy.

It's because for years, and even for more than a decade, users won't update because each new update produces double the critical bugs than fixes. Especially when they are adding lots of new functionality, without fixing the core bugs that matter most. So there are many users that refuse to upgrade, and the company is now forcing end-of-life to many old versions, too.

I guess when Microsoft decided to force updates on Windows 10 users and got away with doing it, this company also decided to do it as well. I and many other users wouldn't be as steamed about it, but the company decides when to auto-update when they deem it convenient-- which is randomly, during the most critical times of the day.

Link to comment
Share on other sites

block the update by firewall. commonly, when an update process sees that it has no internet connection, it terminates and tries later. you can either block the update on the local firewall, or on your network firewall. you can then allow the update to run at off-hours, maybe for a single test machine and later for all the rest.

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...