在 .NET 安装执行重启后,我如何强制 Windows 启动我自己的 MSI?

How can i force Windows to start my own MSI after .NET installation performs a reboot?

我有一个程序需要 .NET 4.7.2。 因此我创建了一个引导程序来下载 .NET 并安装 它。不幸的是,安装需要重新启动。 我的问题是如何告诉 Windows 在重启后启动我的 MSI .NET 安装?

您可以为此在 Run keys 下写入一个注册表值,并使用命令行让 msiexec 启动您的程序包。

然而,这应该由大多数 自动处理。您使用什么工具来构建设置?

编辑:这里有两个相关的主题,在使用 Wix 工具集构建包时处理这个问题:

  • How can I continue the installation from the point it left due to reboot?

  • WiX Burn after restart/force reboot continuing installation