获取进度值和MSI安装状态 [英] Get progress value and status of a MSI installation
问题描述
我正在创建一个Delphi应用程序,它将执行msi静默安装。我想获取msi的进度值并获取安装状态,并在delphi应用程序上显示
I am creating a Delphi application which will execute a msi silent installation . I want to get the progress value of the msi and get the installation status and show it on the delphi applcation
,并且如果要关闭Msi,请关闭它。单击Delphi应用程序。
and also i want to close the msi if a button in the Delphi application is clicked.
我正在使用delphi应用程序,因为没有任何安装软件可以提供我想要的某些功能
I am using delphi application because no any installation software gives some facilities i want
推荐答案
要获取进度值,必须使用 code> MsiSetExternalUI 函数,它是 Windows Installer API
,然后解析 INSTALLMESSAGE_PROGRESS
字符串,您可以在此处阅读更多信息 解析Windows Installer消息
。 jedi-apilib
在 JwaMsi
单元。
To get the progress value, you must use the MsiSetExternalUI
function which is part of the Windows Installer API
and then parse the INSTALLMESSAGE_PROGRESS
string, you can read more info here Parsing Windows Installer Messages
. the jedi-apilib
has a translation of the headers of this api in the JwaMsi
unit.
这篇关于获取进度值和MSI安装状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!