1
我想执行我的.exe文件,该文件显示MessageBox
并在单击确定时退出。 CustomAction
应在安装完成后执行,但在显示Finish
对话框之前执行。问题是,我无法设置主安装程序窗口等待点击OK按钮(Finish
对话框直接显示,因此无需点击OK按钮即可完全关闭主窗口)。 的WiX工具集版本:V3.10WiX工具集在安装后执行自定义操作并等待完成
产品的源代码:
<Property Id="WixShellExecTarget" Value="[#ExeId]" />
<InstallExecuteSequence>
<Custom Action="LaunchExe" After="InstallFinalize" />
</InstallExecuteSequence>
<CustomAction Id="LaunchExe" BinaryKey="WixCA" DllEntry="WixShellExec" Execute="immediate" Return="check" Impersonate="yes" />
组件的源代码:
<Component Id="ExeId" Directory="APPLICATIONFOLDER" Guid="*">
<File Id="ExeId" Source=".\ExeName.exe" KeyPath="yes" Checksum="yes" />
</Component>