Visual C#中前preSS安装程序?安装程序、Visual、preSS

2023-09-07 09:07:31 作者:迷人的烟味つ

我在使用Visual C#EX preSS 2010年。我需要一个安装程序,可以让一个人选择安装应用程序,以及安装.NET Framework。我还需要定制什么nstaller貌似..是否有任何安装程序,我可以使用,很容易使用?我是16,所以我不是在安装之类的东西好。

I am using visual c# express 2010. I need an installer that will allow a person to choose where to install the application, and as well as install the .Net framework.. I also need customize what the nstaller looks like.. Are there any installers I can use that are easy to use? I am 16, so I am not that good at installers and stuff.

推荐答案

看着我,你是多么年轻的猜测,这应该是免费或接近免费越好。有几个选项可以使安装了免费软件虽然。

Seeing how young you are I'm guessing that this should be free or as close to free as possible. There are several options for making installers with free software though.

维克斯(http://wix.sourceforge.net/)是一种基于XML的解决方案,它可以让你很quicly提出了一个简单的安装和支持(或者甚至跑?)由微软。我已经试过有几次,但从来没有真正试图从切换的标志定义它的一部分。

Wix (http://wix.sourceforge.net/) is an xml based solution which lets you quite quicly put up a simple installer and is supported (or maybe even run?) by Microsoft. I've tried it on a few occasions but never really tried to customize it a part from switching the logo.

我本人来说preFER NSIS(http://nsis.sourceforge.net/),因为它给你一个完整的脚本语言(尽管它可能不会像很多从一开始),但它允许您自定义您的安装在一个很好的方式。下面是如何一点是需要一个基本的安装程序(从维基百科借)快速样品

I personaly prefer NSIS (http://nsis.sourceforge.net/) since it gives you a full scripting language (even though it might not look like much from the start) but it allows you to customize your installer in an excellent way. Below is a quick sample of how little is needed for a basic installer (borrowed from Wikipedia)

!include MUI.nsh
Name "My installer"
OutFile "setup.exe"
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "license.rtf"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "German"
!insertmacro MUI_LANGUAGE "French"
Section "Extract makensis"
  SetOutPath $INSTDIR
  File ..\makensis.exe
SectionEnd

另一种选择我已经听到了很多良好的是InnoSetup编写(http://www.jrsoftware.org/isinfo.php)虽然我没有测试它自己并不能真正证实任何事情

Another option I've been hearing a lot of good about is InnoSetup (http://www.jrsoftware.org/isinfo.php) though I haven't tested it myself and can't really vouch for anything about it.