How to create an MSIX package for WinForms app?

三世轮回 提交于 2020-02-23 06:57:06

问题


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.

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.

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


回答1:


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

An extract from the above link:

You should be able to use the windows application packaging project to package MSIX. Please see: https://docs.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-packaging-dot-net

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

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.

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.

Disclaimer: I work on the team building Advanced Installer.



来源:https://stackoverflow.com/questions/59759398/how-to-create-an-msix-package-for-winforms-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!