WIX - 如何在安装结束时启动自述文件和 exe [英] WIX - How to launch readme and exe at the end of the installation

查看:55
本文介绍了WIX - 如何在安装结束时启动自述文件和 exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在此处阅读了 WIX 说明:

I've read the WIX instructions here:

但是,我想启动自述文件和似乎不受支持的应用程序.此外,WIX 文档提供的解决方案不会自动检查最终屏幕上的选项.有人知道怎么做吗?

However, I want to launch the readme and the application which doesn't appear to be supported. Also the solution provided by the WIX documentation does not automatically check the option on the final screen. Does anyone know how to do this?

推荐答案

此示例代码将帮助您在 MSI 安装后启动 exe 或打开 .txt 文件.你可以做一些技巧并将其添加到 UI 中.如果启动框被选中,它将启动特定的 exe 或执行您在那里声明的操作.

This sample code will help you to launch exe or open .txt file after MSI Install. You can do some hacks and add it to UI. If launch box is checked it will launch specific exe or do action whichever you state there.

在没有任何 UI 启动的情况下,无论您提供它来启动它的 exe.

Below one without any UI launch whiechever exe you provide it to launch.

<InstallExecuteSequence>
         <Custom Action='LaunchInstalledExe' After='InstallFinalize'/>
</InstallExecuteSequence>

<CustomAction Id="LaunchInstalledExe"
         FileKey="ExeFile"
         ExeCommand="" 
         Execute="immediate" 
         Impersonate="yes" 
         Return="asyncNoWait" />

这篇关于WIX - 如何在安装结束时启动自述文件和 exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆