Updated installer and added LICENSE.txt

This commit is contained in:
Daniel Önnerby 2008-05-17 18:14:10 +00:00
parent 02a5022139
commit cef1fb7dd3
3 changed files with 43 additions and 1 deletions

28
LICENSE.txt Normal file
View File

@ -0,0 +1,28 @@
The following are Copyright © 2007, mC2 Team.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the author nor the names of other contributors may
be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

View File

@ -0,0 +1,12 @@
LangString MUI_INNERTEXT_LICENSE_TOP ${LANG_ENGLISH} ""
LangString MUI_INNERTEXT_LICENSE_BOTTOM ${LANG_ENGLISH} ""
LangString MUI_TEXT_LICENSE_TITLE ${LANG_ENGLISH} "mC2 Installation"
LangString MUI_TEXT_LICENSE_SUBTITLE ${LANG_ENGLISH} "New BSD License"
LangString MUI_TEXT_DIRECTORY_TITLE ${LANG_ENGLISH} "mC2 Installation"
LangString MUI_TEXT_DIRECTORY_SUBTITLE ${LANG_ENGLISH} "Choose directory"
LangString MUI_TEXT_INSTALLING_TITLE ${LANG_ENGLISH} "mC2 Installation"
LangString MUI_TEXT_INSTALLING_SUBTITLE ${LANG_ENGLISH} "Installing..."
LangString MUI_TEXT_FINISH_TITLE ${LANG_ENGLISH} "mC2 Installation"
LangString MUI_TEXT_FINISH_SUBTITLE ${LANG_ENGLISH} "Installation finished"
LangString MUI_TEXT_ABORT_TITLE ${LANG_ENGLISH} "mC2 Installation"
LangString MUI_TEXT_ABORT_SUBTITLE ${LANG_ENGLISH} "Abort installation"

View File

@ -20,12 +20,13 @@ Name "${PROJECT_NAME} ${SUB_NAME}"
ShowInstDetails show ;show/hide
;!include "LanguageStrings.nsh"
!include "LanguageStrings.nsh"
!insertmacro MUI_LANGUAGE "English"
InstallDir "$PROGRAMFILES\${INSTALL_DIR}"
InstallDirRegKey HKCU "Software\${INSTALL_DIR}" ""
!insertmacro MUI_PAGE_LICENSE "..\LICENSE.txt"
!insertmacro MUI_PAGE_DIRECTORY
;!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES
@ -41,6 +42,7 @@ Section "mC2installation" main
SetOutPath "$INSTDIR"
File /r "..\bin\release\mC2.exe"
File /r "..\LICENSE.txt"
SetOutPath "$INSTDIR\plugins"
File /r "..\bin\release\plugins\*.dll"