在.msi安装程序中包装C#应用程序 [英] Wrap C# application in .msi installer

查看:92
本文介绍了在.msi安装程序中包装C#应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在Visual Studio 2017中创建了C#应用程序。现在,我想将应用程序作为单个Windows安装程序文件分发。
我希望有一个简单的一键式解决方案(选择我要包含的所有文件->瞧!有安装程序)。但这似乎并不容易:-(

I have created a C# application in Visual Studio 2017. Now I would like to distribute my application as a single windows installer file. I was hoping for a simple one-click solution (select all the files I want to include -> voila! there's the installer). But it seems to be not that easy :-(

我经常读到Visual Studio支持安装项目。但是现在似乎不再如此了,对吧?

I often read that Visual Studio supports setup projects. But that does not seem to be the case anymore, right?

第三方工具非常复杂(例如Wix,Inno Setup)或非常昂贵(例如Advanced Installer)。

Third party tools are either very complicated (e.g. Wix, Inno Setup) or very expensive (e.g. Advanced Installer).

是否真的没有简单的方法将某些文件包装到.msi Windows安装程序中?
Microsoft是否不提供创建此类安装程序的工具?

Is there really no simple way to wrap some files in an .msi Windows installer? Does Microsoft provide no tooling to create such installers?

推荐答案


或非常昂贵(例如Advanced Installer)。

or very expensive (e.g. Advanced Installer).

也是免费版本,其中包括适用于Advanced Installer的Visual Studio扩展,可用于构建MSI软件包。

There is a also a free edition which includes a Visual Studio extension for Advanced Installer, which you can use to build MSI packages.

以下教程显示了如何使用免费版(简单项目类型):

The following tutorial shows how you can use the features from the free edition ("Simple" project type):

  • https://www.advancedinstaller.com/user-guide/tutorial-ai-ext-vs.html
  • https://www.advancedinstaller.com/user-guide/tutorial-simple.html

PS我正在团队建设高级安装程序中。

这篇关于在.msi安装程序中包装C#应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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