Visual c# Express installer?

时光毁灭记忆、已成空白 提交于 2019-12-24 07:30:07

问题


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.


回答1:


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.

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.

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

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.




回答2:


Wix is your friend. You can find it, and a tutorial at http://wix.sourceforge.net/



来源:https://stackoverflow.com/questions/11172095/visual-c-sharp-express-installer

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