Happy new year
[pazpar2-moved-to-github.git] / win / pazpar2.nsi
index 790d46f..cbe7eb3 100644 (file)
@@ -1,13 +1,14 @@
 ; This file is part of Pazpar2.
-; Copyright (C) 2006-2009 Index Data
+; Copyright (C) Index Data
+; See the file LICENSE for details.
 
 !include version.nsi
 
 ; Microsoft runtime CRT 
-; Uncomment exactly ONE section of the three below
+; Uncomment exactly ONE of the sections below
 ; 1: MSVC 6
-!define VS_RUNTIME_DLL ""
-!define VS_RUNTIME_MANIFEST ""
+;!define VS_RUNTIME_DLL ""
+;!define VS_RUNTIME_MANIFEST ""
 
 ; 2: VS 2003
 ; !define VS_RUNTIME_DLL "c:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin\msvcr71.dll"
 ;!define VS_RUNTIME_DLL      "c:\Program Files\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\msvcr80.dll"
 ;!define VS_RUNTIME_MANIFEST "c:\Program Files\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\Microsoft.VC80.CRT.manifest"
 
+; 4: VS 2008
+!define VS_RUNTIME_DLL      "c:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\msvcr90.dll"
+!define VS_RUNTIME_MANIFEST "c:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\Microsoft.VC90.CRT.manifest"
+
 
 !include "MUI.nsh"
 
@@ -81,10 +86,12 @@ Section "" ; (default section)
        File LICENSE.txt
        File ..\README
        File ..\NEWS
-       SetOutPath $INSTDIR/etc
+       SetOutPath $INSTDIR\etc
        File /r ..\etc\*.xml
        File /r ..\etc\*.xsl
-       File /r ..\etc\*.dist
+       File /r ..\etc\*.mmap
+       File /oname=pazpar2.cfg ..\etc\pazpar2.cfg.dist 
+       SetOutPath $INSTDIR\log
 
 SectionEnd ; end of default section
 
@@ -94,16 +101,16 @@ Section "Pazpar2 Runtime" Pazpar2_Runtime
        ExecWait '"$INSTDIR\bin\pazpar2.exe" -remove'
 Noservice:
        SetOutPath $INSTDIR\bin
-       File "${VS_RUNTIME_DLL}"
-       File "${VS_RUNTIME_MANIFEST}"
+       ; File "${VS_RUNTIME_DLL}"
+       ; File "${VS_RUNTIME_MANIFEST}"
        File ..\bin\*.dll
        File ..\bin\*.exe
        SetOutPath $SMPROGRAMS\Pazpar2
        SetOutPath $SMPROGRAMS\Pazpar2\Server
        CreateShortCut "$SMPROGRAMS\Pazpar2\Server\Server on console.lnk" \
                  "$INSTDIR\bin\pazpar2.exe" '-f"$INSTDIR\etc\pazpar2.cfg"'
-       CreateShortCut "$SMPROGRAMS\Pazpar2\Server\Install Z39.50 service.lnk" \
-                  "$INSTDIR\bin\pazpar2.exe" '-installa -f"$INSTDIR\etc\pazpar2.cfg"'
+       CreateShortCut "$SMPROGRAMS\Pazpar2\Server\Install Pazpar2 service.lnk" \
+                 "$INSTDIR\bin\pazpar2.exe" '-install -l"$INSTDIR\log\pazpar2.log" -f"$INSTDIR\etc\pazpar2.cfg"'
        CreateShortCut "$SMPROGRAMS\Pazpar2\Server\Remove Pazpar2 service.lnk" \
                  "$INSTDIR\bin\pazpar2.exe" '-remove'
 SectionEnd