如何为WinForms应用程序创建MSIX包? [英] How to create an MSIX package for WinForms app?

查看:123
本文介绍了如何为WinForms应用程序创建MSIX包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试转到MSIX来安装我们的应用程序,该应用程序当前是通过ClickOnce安装部署到我们的客户的,如果有更新,则需要在启动时进行更新。它是一个.Net Framework(4.7.2)WinForms应用程序。我对如何开始有点迷茫;该文档似乎从现有的安装程序包(包括ClickOnce)开始,但是我想在构建服务器上无需中间步骤就生成此文件,因为一旦我们证明MSIX可以工作,我们就希望完全淘汰ClickOnce安装。

I'm trying to move to MSIX to install our application, which is currently deployed to our customers via a ClickOnce installation which requires updating on startup, if there is an update. Its a .Net Framework (4.7.2) WinForms app. I'm a bit lost on how to begin; the documentation seems to start from an existing installer package (including ClickOnce), but I'd like to generate this without an intermediate step on our build server as we want to phase out the ClickOnce installation completely once we've proven MSIX will work for us.

我找到了Windows应用程序打包项目,但它似乎是针对UWP应用程序的,而我们的应用程序并非如此,因此我们需要在Windows 7 SP1或Windows 7 SP1上安装更高。

I found the Windows Application Packaging Project, but it seems targeted to UWP app, which ours is not, and we have the need to install on Windows 7 SP1 or higher.

我将使用哪种工具以非交互方式创建MSIX软件包? WAPP会在此过程中扮演任何角色吗?

What tool would I use to create an MSIX package non-interactively? Would the WAPP play any role in the process?

推荐答案

这里是MSFT的MSIX社区中的类似主题。它谈论的是VS 2017,但是大多数信息也适用于2019。

Here is a similar thread on MSFT's MSIX community. It's talking about VS 2017, but most of the info applies to 2019 too.

  • https://techcommunity.microsoft.com/t5/msix-packaging-and-tools/build-msix-from-vs-2017-pro-v-15-9-4/m-p/952246

上面链接的摘录:


您应该可以使用Windows应用程序打包项目可以打包MSIX。请参阅: https:/ /docs.microsoft.com/zh-CN/windows/msix/desktop/desktop-to-uwp-packaging-dot-net

或者,您可以使用以下方法手动打包您的MSIX: https://docs.microsoft.com/zh-CN/windows/msix/desktop/desktop-to-uwp-manual-conversion

Alternatively, you could package your MSIX by hand using: https://docs.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-manual-conversion

此外,如果要使用MSIX打包工具,则可以使用我们的预制VM:即使您的企业仍在运营中,https://docs.microsoft.com/en-us/windows/msix/packaging-tool/quick-create-vm Windows的较早版本。

Additionally, if you want to use the MSIX Packaging Tool, you might be able to leverage our pre-made VM: https://docs.microsoft.com/en-us/windows/msix/packaging-tool/quick-create-vm even if your enterprise is still on an older release of windows.

您还可以尝试合作伙伴解决方案,例如高级安装程序的 VS扩展,如果您需要针对不同的用户,则可以从同一项目中构建MSIX和MSI。该扩展程序还支持在msix容器中调试应用程序。

You can also try partner solutions, like Advanced Installer's VS extension which can build an MSIX and MSI from the same project, if you need to target different users. The extension also supports debugging apps inside the msix container.

免责声明:我正在团队中开发Advanced Installer。

Disclaimer: I work on the team building Advanced Installer.

这篇关于如何为WinForms应用程序创建MSIX包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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