From 77c1607bfc5297238cfbb54091e05f87b1f5188a Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 13 Jun 2007 21:08:56 +0000 Subject: Nasty kludge to allow for optional install of ssl: If the user doesnt have the ssl box ticked, the ssl modules are installed but immediately deleted by the installer, and the gnutls dlls are not installed. If the user does have the box ticked (default) the ssl section immediately puts the ssl modules back again, and then installs the gnutls libs (ick) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7294 e03df62e-2008-0410-955e-edbf42e46eb7 --- win/inspircd.nsi | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'win') diff --git a/win/inspircd.nsi b/win/inspircd.nsi index 1e208345d..abbaef1d1 100644 --- a/win/inspircd.nsi +++ b/win/inspircd.nsi @@ -162,7 +162,17 @@ SectionEnd Section "Modules" SEC04 SetOutPath "$INSTDIR\modules" - File "..\bin\${BUILD}\modules\*.so" + File "..\bin\${BUILD}\modules\m_*.so" + Delete "$INSTDIR\bin\*.dll" + Delete "$INSTDIR\modules\m_ssl*.so" +SectionEnd + +Section "SSL Modules" SEC05 + SetOutPath "$INSTDIR\bin" + SetOverwrite ifnewer + File "..\bin\${BUILD}\bin\*.dll" + SetOutPath "$INSTDIR\modules" + File "..\bin\${BUILD}\modules\m_ssl*.so" SectionEnd Section -AdditionalIcons @@ -223,8 +233,8 @@ Section Uninstall 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 "$SMPROGRAMS\InspIRCd\Uninstall.lnk" Delete "$SMPROGRAMS\InspIRCd\InspIRCd Website.lnk" Delete "$SMPROGRAMS\InspIRCd\InspIRCd.lnk" @@ -240,5 +250,3 @@ Section Uninstall DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}" SetAutoClose true SectionEnd - -Page directory -- cgit v1.2.3