summaryrefslogtreecommitdiff
path: root/win/inspircd.nsi
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-06-08 20:40:29 -0400
committerDaniel De Graaf <danieldg@inspircd.org>2011-06-08 20:40:29 -0400
commite46e50071fce0e6b47ef7712fae8465933bd618a (patch)
tree8c1fd08de54a2e5c056cb2d6adb03ff0c5d6b4ca /win/inspircd.nsi
parent9fcb032269d02b1933e2c56c73f9c38f8a6146ec (diff)
Final fixups for a working Windows build
Diffstat (limited to 'win/inspircd.nsi')
-rw-r--r--win/inspircd.nsi74
1 files changed, 24 insertions, 50 deletions
diff --git a/win/inspircd.nsi b/win/inspircd.nsi
index 117d1bc63..dbd9d5511 100644
--- a/win/inspircd.nsi
+++ b/win/inspircd.nsi
@@ -2,7 +2,7 @@
; * | Inspire Internet Relay Chat Daemon |
; * +------------------------------------+
; *
-; * InspIRCd: (C) 2002-2009 InspIRCd Development Team
+; * InspIRCd: (C) 2002-2011 InspIRCd Development Team
; * See: http://wiki.inspircd.org/Credits
; *
; * This program is free but copyrighted software; see
@@ -50,9 +50,6 @@ Page directory
!insertmacro MUI_PAGE_COMPONENTS
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
-; Finish page
-!define MUI_FINISHPAGE_RUN "$INSTDIR\InspGUI.exe"
-!insertmacro MUI_PAGE_FINISH
; Uninstaller pages
!insertmacro MUI_UNPAGE_INSTFILES
@@ -66,7 +63,7 @@ Page directory
; MUI end ------
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
-OutFile "Setup.exe"
+OutFile "${PRODUCT_NAME}-${PRODUCT_VERSION}-Setup.exe"
InstallDir "$PROGRAMFILES\InspIRCd"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
@@ -133,42 +130,25 @@ FunctionEnd
Section "Binary Executable" SEC01
Call IsDotNetInstalled
- SetOutPath "$TEMP"
- SetOverwrite ifnewer
- File "vcredist_x86.exe"
- ExecWait "$TEMP\vcredist_x86.exe"
- SetOutPath "$INSTDIR"
- SetOverwrite ifnewer
- File "..\bin\${BUILD}\InspGUI.exe"
CreateDirectory "$SMPROGRAMS\InspIRCd"
- CreateShortCut "$SMPROGRAMS\InspIRCd\InspIRCd.lnk" "$INSTDIR\InspGUI.exe"
- SetOutPath "$INSTDIR\bin"
+ CreateDirectory "$INSTDIR\logs"
+ CreateDirectory "$INSTDIR\data"
+ CreateShortCut "$SMPROGRAMS\InspIRCd\InspIRCd.lnk" "$INSTDIR\inspircd.exe"
+ SetOutPath "$INSTDIR"
SetOverwrite ifnewer
File "..\bin\${BUILD}\bin\inspircd.exe"
DetailPrint "Installing InspIRCd service..."
- nsExec::Exec /TIMEOUT=30000 '"$INSTDIR\bin\inspircd.exe" --installservice'
+ nsExec::Exec /TIMEOUT=30000 '"$INSTDIR\inspircd.exe" --installservice'
SectionEnd
Section "Config Files" SEC02
SetOutPath "$INSTDIR\conf"
- File "..\conf\inspircd.motd.example"
- File "..\conf\inspircd.helpop-full.example"
- File "..\conf\inspircd.helpop.example"
- File "..\conf\inspircd.filter.example"
- File "..\conf\inspircd.conf.example"
- File "..\conf\opers.conf.example"
- File "..\conf\modules.conf.example"
- File "..\conf\links.conf.example"
- File "..\conf\inspircd.censor.example"
- File "..\conf\inspircd.rules.example"
- File "..\conf\inspircd.quotes.example"
- SetOutPath "$INSTDIR\conf\test"
- File "..\conf\test\test.conf"
+ File "..\docs\*.example"
SectionEnd
Section "Command Handlers" SEC03
- SetOutPath "$INSTDIR\lib"
- File "..\bin\${BUILD}\lib\cmd_*.so"
+ SetOutPath "$INSTDIR\modules"
+ File "..\bin\${BUILD}\modules\cmd_*.so"
SectionEnd
Section "Modules" SEC04
@@ -177,7 +157,7 @@ Section "Modules" SEC04
SectionEnd
Section "SSL Modules" SEC05
- SetOutPath "$INSTDIR\bin"
+ SetOutPath "$INSTDIR"
SetOverwrite ifnewer
File "..\bin\${BUILD}\bin\libgcrypt-11.dll"
File "..\bin\${BUILD}\bin\libgnutls-13.dll"
@@ -197,7 +177,7 @@ Section "SSL Modules" SEC05
SectionEnd
Section "Regexp Modules" SEC06
- SetOutPath "$INSTDIR\bin"
+ SetOutPath "$INSTDIR"
SetOverwrite ifnewer
File "..\bin\${BUILD}\bin\pcre.dll"
SetOutPath "$INSTDIR\modules"
@@ -213,10 +193,10 @@ SectionEnd
Section -Post
WriteUninstaller "$INSTDIR\uninst.exe"
- WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\bin\inspircd.exe"
+ WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\inspircd.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\bin\inspircd.exe"
+ WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\inspircd.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
@@ -252,31 +232,25 @@ FunctionEnd
Section Uninstall
DetailPrint "Uninstalling InspIRCd service..."
- nsExec::Exec /TIMEOUT=30000 '"$INSTDIR\bin\inspircd.exe" --removeservice'
+ nsExec::Exec /TIMEOUT=30000 '"$INSTDIR\inspircd.exe" --removeservice'
Delete "$INSTDIR\${PRODUCT_NAME}.url"
Delete "$INSTDIR\uninst.exe"
- Delete "$INSTDIR\modules\m_*.so"
- Delete "$INSTDIR\lib\cmd_*.so"
- Delete "$INSTDIR\conf\inspircd.quotes.example"
- Delete "$INSTDIR\conf\inspircd.rules.example"
- Delete "$INSTDIR\conf\inspircd.censor.example"
- Delete "$INSTDIR\conf\inspircd.conf.example"
- Delete "$INSTDIR\conf\inspircd.filter.example"
- Delete "$INSTDIR\conf\inspircd.helpop.example"
- Delete "$INSTDIR\conf\inspircd.helpop-full.example"
- Delete "$INSTDIR\conf\inspircd.motd.example"
- Delete "$INSTDIR\bin\inspircd.exe"
- Delete "$INSTDIR\bin\*.dll"
- Delete "$INSTDIR\InspGUI.exe"
+ Delete "$INSTDIR\modules\*.so"
+ Delete "$INSTDIR\conf\*.example"
+ Delete "$INSTDIR\*.dll"
+ Delete "$INSTDIR\*.log"
+ Delete "$INSTDIR\logs\*"
+ Delete "$INSTDIR\data\*"
+ Delete "$INSTDIR\inspircd.exe"
Delete "$SMPROGRAMS\InspIRCd\Uninstall.lnk"
Delete "$SMPROGRAMS\InspIRCd\InspIRCd Website.lnk"
Delete "$SMPROGRAMS\InspIRCd\InspIRCd.lnk"
RMDir "$SMPROGRAMS\InspIRCd"
RMDir "$INSTDIR\modules"
- RMDir "$INSTDIR\lib"
RMDir "$INSTDIR\conf"
- RMDir "$INSTDIR\bin"
+ RMDir "$INSTDIR\logs"
+ RMDir "$INSTDIR\data"
RMDir "$INSTDIR"
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"