From: Andreas Kohlbecker Date: Thu, 28 Oct 2010 14:03:20 +0000 (+0000) Subject: CDM Server as win32 service - installer improvements X-Git-Tag: cdm-server-3.0.3~68 X-Git-Url: https://dev.e-taxonomy.eu/gitweb/cdm-server.git/commitdiff_plain/c97cdf1f9de805ce05bb51655b644b4c06c20ea5 CDM Server as win32 service - installer improvements --- diff --git a/src/main/installer/win32/setup.nsi b/src/main/installer/win32/setup.nsi index 653af69..2aa48ab 100644 --- a/src/main/installer/win32/setup.nsi +++ b/src/main/installer/win32/setup.nsi @@ -1,6 +1,8 @@ # Auto-generated by EclipseNSIS Script Wizard # 28.10.2010 13:58:54 +# TODO : preserve $INSTDIR/.cdmLibrary from being deleted if the user desides to keep it, or just warn the user. + Name "EDIT CDM-Server" # General Symbol Definitions @@ -18,6 +20,7 @@ Name "EDIT CDM-Server" !define OUT_FOLDER "..\..\..\..\dist" !define JAR_FILE_NAME "cdm-server-${VERSION}.jar" !define JAR_FILE "..\..\..\..\target\${JAR_FILE_NAME}" +!define CDMLIBRARY_TEMPLATE "..\templates\.cdmLibrary" # Reserved Files ReserveFile "${NSISDIR}\Plugins\StartMenu.dll" @@ -57,8 +60,10 @@ Section -Main SEC0000 SetOutPath $INSTDIR SetOverwrite on File /r /x .svn /x *.log /x *.jar program-folder\* - SetOutPath "$INSTDIR\lib" + File /r /x .svn ${CDMLIBRARY_TEMPLATE} File ${JAR_FILE} + SetOverwrite off + SetOutPath "$INSTDIR\lib" WriteRegStr HKLM "${REGKEY}\Components" Main 1 SectionEnd