How can I intercept moment before installation of any binary on Windows? I would like to stop the process before installation and execute some Python/PowerShell scripts. After that stop the installation process or permit of installing certain binary, it depends on the script's results. Does exist some windows API responsible for that type of operation?