C# 如何使用一些脚本为 wpf 4.5 应用程序创建安装包

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14621093/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-10 12:27:15  来源:igfitidea点击:

How can I create Setup package for wpf 4.5 application using some script

c#wpfinstallersetup-project.net-4.5

提问by D J

I need to create install-able setup via scripting for my WPF application. I don't know where to start and what is best way to do this. Please help.

我需要通过脚本为我的 WPF 应用程序创建可安装的设置。我不知道从哪里开始,什么是最好的方法来做到这一点。请帮忙。

采纳答案by Echilon

You can either:

您可以:

  • Use the built in setup project type in Visual Studio to create an MSI installer
  • Use something like NSISor WIX. I use NSIS for all of my apps, both have learning curves and NSIS is fairly easily skinnable.
  • 使用 Visual Studio 中的内置安装项目类型创建 MSI 安装程序
  • 使用类似NSISWIX 的东西。我将 NSIS 用于我所有的应用程序,两者都有学习曲线,而且 NSIS 很容易换肤。

回答by AFract

Agree with Echilon. I would like to add that Inno Setup is also a very good solution to try.

同意埃奇隆。我想补充一点,Inno Setup 也是一个非常好的尝试解决方案。

IMHO WIX is much harder to understand and to manage than alternatives, for little projects it's not the best option.

恕我直言,WIX 比替代方案更难理解和管理,对于小项目来说,这不是最佳选择。

回答by Youngjae

Consider using Inno Setup ? http://www.jrsoftware.org/isinfo.php

考虑使用 Inno Setup 吗?http://www.jrsoftware.org/isinfo.php

It is free and also provides powerful script to make a installer package.

它是免费的,还提供了强大的脚本来制作安装程序包。