重新启动后恢复安装程序

发布于 2024-10-01 11:49:53 字数 336 浏览 2 评论 0原文

安装程序需要运行 .NET 4 安装程序 (dotNetFx40_Full_setup.exe) 和 Microsoft Surface Toolkit (SurfaceToolkitRuntime.msi)。问题是 .NET 4 安装需要重新启动计算机,并且 Microsoft Surface Toolkit 需要安装 .NET 4。

通过查看其他问题,我发现我应该使用 WiX (是/否?)。这是可以在批处理文件中完成的事情吗?

如果我需要使用 WiX/批处理文件/其他什么类型的代码执行此操作?

The installer needs to run the .NET 4 installer (dotNetFx40_Full_setup.exe) and Microsoft Surface Toolkit (SurfaceToolkitRuntime.msi). The problem is that the .NET 4 install needs to restart the machine AND the Microsoft Surface Toolkit requires .NET 4 to install.

From looking at other questions I appears I should be using WiX (yes/no?). Is this something that could be done in a batch file?

If I need to use WiX/batch file/other what kind of code performs this action?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

丶视觉 2024-10-08 11:49:53

如果您在 Visual Studio 中创建软件,则可以使用安装项目(用于创建 MSI 安装程序)安装.NET和其他软件作为先决条件,保存重启提示直到最后。您可能必须创建自定义引导程序包 对于 Surface Toolkit 之类的,但它并不太困难并且效果很好。

If you're creating your software in Visual Studio, you can have the setup project (which creates your MSI installer) install .NET and other software as prerequisites, saving the reboot prompt until the end. You may have to create custom bootstrapper packages for the Surface Toolkit and such, but it's not too difficult and works well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文