I'm writing a small app to install some product and uninstall some other in silent mode.
Every product has its MSI file and nothing else and my app manifest states that it should be run with admin privileges.
It's pretty easy to run msiexec
with proper arguments to accomplish my task (just a bunch of code) and everything is working fine.
Anyway some package takes a lot of time to finish and on some old pc user is asking if something is still going on in background or it's hang.
So is it possible to "catch" msiexec
progress and for example update a progressbar on my app? Sounds crazy, but I'm pretty sure that some professional installer works this way running external msi package.
So, is it possibile? Is there something we can do in C# or is it a very hard task that requires a lot of knowledge I don't have?
Just a note: I know I could use "/qb"
param, but some package is not behaving the correct way with it and I don't want to use it.