Search code examples
installationwindows-installersilent-installer

How to interactive a silently installing msi? (Progress data and cancel it)


For some reason, we are delivering a product with our own install GUI, that means, we will run the msi installation silently background.

By using the MSI API "MsiInstallProduct", I can install the product silently, but I have no idea how can I get the progress data of this installation and how can I cancel it.

Anyone has some ideas?


Solution

  • Here is a sample project that appears to do what you are referring to: http://www.codeproject.com/KB/cs/msiinterop.aspx