Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个 .vbs 脚本,它执行一些操作(即关闭一些进程等),然后执行 msi 安装。我想找到一种方法将这个 .vbs 脚本合并到包中,以便用户何时运行 setup.exe 将首先执行该脚本。
这怎么可能?
将这些操作放在 MSI 中会更好地为您服务,这样它们就可以成为 Windows Installer 事务的一部分。WiX 工具集提供了关闭或重新启动应用程序的自定义操作(请参阅[CloseApplication][1]和[RestartResource][2]元素),因此很容易解决这些要求。
[CloseApplication][1]
[RestartResource][2]