Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

checking if windows update or any installer instace is running before starting my installer( java)

want to make a check in my installer before starting installation if any other installation is running beforehand. Like I want to make a check if windows update or any other installer is running i'll not start my installer.

I'm planning to check if any msiexec instance is running before hand. Is there any better approach, and will that be same for checking windows update. FYI my installer is in java

like image 685
prithu Avatar asked Dec 17 '25 15:12

prithu


1 Answers

You should know that msiexec.exe will still be running for a couple of minutes after an installation is finished. This is a default behavior in the OS, it keeps the process alive for a couple of minutes, in case the user will start another installation, to save time from starting it all over again. So checking for the process could give you incorrect data.

Also, if you have your installer written in Java can you please explain why do you need to check for msiexec.exe processes?

like image 141
Bogdan Mitrache Avatar answered Dec 19 '25 05:12

Bogdan Mitrache



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!