开发者

How to use MSI.DLL to programatically install .msi file and also provide abort/cancel? [duplicate]

开发者 https://www.devze.com 2023-03-21 15:30 出处:网络
This question already has answers here: How to interactive a silently installing msi? (Progress data and cancel it)
This question already has answers here: How to interactive a silently installing msi? (Progress data and cancel it) (3 answers) 开发者_运维问答 Closed 2 years ago.

In order to provide custom more friendly looking UI when updating the application via the downloaded .msi file I have to provide a custom (WPF, if it matters) window that will in turn replicate what msiexec is doing by calling MSI.DLL functions via interop.

Initially it was a simple msiexec call against the downloaded .msi file, and it would be nice if it could stay that simple.

I also need to provide Cancel functionality just like msiexec does.

What would be the proper way to programatically start/stop/abort this via MSI.DLL functions?

(What I did is look at different MSI Interop implementations, WiX included, but couldn't easily recognize APIs to do this).


That's what MSI calls an "external UI handler." See the MSI SDK for details, such as "Monitoring an Installation Using MsiSetExternalUI."

0

精彩评论

暂无评论...
验证码 换一张
取 消