-; Script generated by the HM NIS Edit Script Wizard.\r
+; * +------------------------------------+\r
+; * | Inspire Internet Relay Chat Daemon |\r
+; * +------------------------------------+\r
+; *\r
+; * InspIRCd: (C) 2002-2007 InspIRCd Development Team\r
+; * See: http://www.inspircd.org/wiki/index.php/Credits\r
+; *\r
+; * This program is free but copyrighted software; see\r
+; * the file COPYING for details.\r
+; *\r
+; * ---------------------------------------------------\r
+\r
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
+\r
+ ;;;; SET THE BUILD TO BE PACKAGED HERE ;;;;\r
+\r
+!define BUILD "release"\r
+\r
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
\r
; HM NIS Edit Wizard helper defines\r
!define PRODUCT_NAME "InspIRCd"\r
\r
; MUI Settings\r
!define MUI_ABORTWARNING\r
-!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\arrow2-install.ico"\r
-!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\arrow2-uninstall.ico"\r
+!define MUI_ICON "inspircd.ico"\r
+!define MUI_UNICON "inspircd.ico"\r
\r
; Welcome page\r
!insertmacro MUI_PAGE_WELCOME\r
; License page\r
!define MUI_LICENSEPAGE_CHECKBOX\r
!insertmacro MUI_PAGE_LICENSE "..\docs\COPYING"\r
+; directory page\r
+Page directory\r
; Components page\r
!insertmacro MUI_PAGE_COMPONENTS\r
-; Directory page\r
-!insertmacro MUI_PAGE_DIRECTORY\r
; Instfiles page\r
!insertmacro MUI_PAGE_INSTFILES\r
; Finish page\r
!define MUI_FINISHPAGE_RUN "$INSTDIR\InspGUI.exe"\r
-!define MUI_FINISHPAGE_RUN_PARAMETERS "--nofork"\r
!insertmacro MUI_PAGE_FINISH\r
\r
; Uninstaller pages\r
Call IsDotNetInstalled\r
SetOutPath "$INSTDIR"\r
SetOverwrite ifnewer\r
- File "..\bin\debug\InspGUI.exe"\r
+ File "..\bin\${BUILD}\InspGUI.exe"\r
CreateDirectory "$SMPROGRAMS\InspIRCd"\r
CreateShortCut "$SMPROGRAMS\InspIRCd\InspIRCd.lnk" "$INSTDIR\InspGUI.exe"\r
SetOutPath "$INSTDIR\bin"\r
SetOverwrite ifnewer\r
- File "..\bin\debug\bin\inspircd.exe"\r
+ File "..\bin\${BUILD}\bin\inspircd.exe"\r
SectionEnd\r
\r
Section "Config Files" SEC02\r
\r
Section "Command Handlers" SEC03\r
SetOutPath "$INSTDIR\lib"\r
- File "..\bin\debug\lib\cmd_*.so"\r
+ File "..\bin\${BUILD}\lib\cmd_*.so"\r
SectionEnd\r
\r
Section "Modules" SEC04\r
SetOutPath "$INSTDIR\modules"\r
- File "..\bin\debug\modules\*.so"\r
+ File "..\bin\${BUILD}\modules\m_*.so"\r
+SectionEnd\r
+\r
+Section "SSL Modules" SEC05\r
+ SetOutPath "$INSTDIR\bin"\r
+ SetOverwrite ifnewer\r
+ File "..\bin\${BUILD}\bin\libgcrypt-11.dll"\r
+ File "..\bin\${BUILD}\bin\libgnutls-13.dll"\r
+ File "..\bin\${BUILD}\bin\libgnutls-extra-13.dll"\r
+ File "..\bin\${BUILD}\bin\libgnutls-openssl-13.dll"\r
+ File "..\bin\${BUILD}\bin\libgpg-error-0.dll"\r
+ File "..\bin\${BUILD}\bin\libopencdk-8.dll"\r
+ File "..\bin\${BUILD}\bin\libtasn1-3.dll"\r
+ SetOutPath "$INSTDIR\modules"\r
+ File "d:\temp\m_ssl_gnutls.so"\r
+ File "d:\temp\m_sslinfo.so"\r
+ File "d:\temp\m_ssl_oper_cert.so"\r
+ SetOutPath "$INSTDIR\conf"\r
+ SetOverwrite off\r
+ File "key.pem"\r
+ File "cert.pem"\r
+SectionEnd\r
+\r
+Section "Regexp Modules" SEC06\r
+ SetOutPath "$INSTDIR\bin"\r
+ SetOverwrite ifnewer\r
+ File "..\bin\${BUILD}\bin\pcre.dll"\r
+ SetOutPath "$INSTDIR\modules"\r
+ File "d:\temp\m_filter_pcre.so"\r
SectionEnd\r
\r
Section -AdditionalIcons\r
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"\r
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"\r
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"\r
+ MessageBox MB_ICONINFORMATION|MB_OK "InspIRCd was successfully installed. Remember to edit your configuration file in $INSTDIR\conf!"\r
SectionEnd\r
\r
; Section descriptions\r
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN\r
- !insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "Actual Executable"\r
- !insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "Default Config Files"\r
- !insertmacro MUI_DESCRIPTION_TEXT ${SEC03} "Command Modules"\r
- !insertmacro MUI_DESCRIPTION_TEXT ${SEC04} "Optional Modules"\r
+ !insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "Actual executable"\r
+ !insertmacro MUI_DESCRIPTION_TEXT ${SEC03} "Command modules"\r
+ !insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "Default configuration files"\r
+ !insertmacro MUI_DESCRIPTION_TEXT ${SEC04} "Optional non-SSL modules"\r
+ !insertmacro MUI_DESCRIPTION_TEXT ${SEC05} "SSL modules and GnuTLS DLL libraries"\r
+ !insertmacro MUI_DESCRIPTION_TEXT ${SEC06} "Regular expression module and PCRE DLL library"\r
!insertmacro MUI_FUNCTION_DESCRIPTION_END\r
\r
\r
MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer."\r
FunctionEnd\r
\r
+Function .onInit\r
+ SectionSetFlags ${SEC01} 17\r
+ SectionSetFlags ${SEC03} 17\r
+ StrCpy $INSTDIR "$PROGRAMFILES\InspIRCd"\r
+FunctionEnd\r
+\r
Function un.onInit\r
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2\r
Abort\r
Delete "$INSTDIR\conf\inspircd.helpop-full.example"\r
Delete "$INSTDIR\conf\inspircd.motd.example"\r
Delete "$INSTDIR\bin\inspircd.exe"\r
+ Delete "$INSTDIR\bin\*.dll"\r
Delete "$INSTDIR\InspGUI.exe"\r
-\r
Delete "$SMPROGRAMS\InspIRCd\Uninstall.lnk"\r
Delete "$SMPROGRAMS\InspIRCd\InspIRCd Website.lnk"\r
Delete "$SMPROGRAMS\InspIRCd\InspIRCd.lnk"\r