Inno Setup 检查额外的 (Windows Installer) mutex
Inno Setup Check additional (Windows Installer) mutex
如何在 Inno Setup 中检查互斥量?如果 Windows 安装程序安装是 运行.
,我希望我的安装程序等待
我只在 Inno Setup 中找到了 AppMutex
指令,但这并不是我想要的。
使用 CheckForMutexes
function from the InitializeSetup
event function.
[Code]
function InitializeSetup(): Boolean;
begin
while CheckForMutexes('_MSIExecute') do
begin
MsgBox('Windows Installer Installation is running', mbError, MB_OK);
end;
Result := True;
end;
假设(基于@ChristopherPainter 删除的答案)_MSIExecute
是要检查的互斥量。
您可以在[设置]部分使用SetupMutex指令
[Setup]
SetupMutex=MySetupsMutexName,Global\MySetupsMutexName
编辑:
但它只检查具有相同互斥名称的相同安装程序的实例
如何在 Inno Setup 中检查互斥量?如果 Windows 安装程序安装是 运行.
,我希望我的安装程序等待我只在 Inno Setup 中找到了 AppMutex
指令,但这并不是我想要的。
使用 CheckForMutexes
function from the InitializeSetup
event function.
[Code]
function InitializeSetup(): Boolean;
begin
while CheckForMutexes('_MSIExecute') do
begin
MsgBox('Windows Installer Installation is running', mbError, MB_OK);
end;
Result := True;
end;
假设(基于@ChristopherPainter 删除的答案)_MSIExecute
是要检查的互斥量。
您可以在[设置]部分使用SetupMutex指令
[Setup]
SetupMutex=MySetupsMutexName,Global\MySetupsMutexName
编辑:
但它只检查具有相同互斥名称的相同安装程序的实例