Skip to content
Browse files

Updates to installer to facililate downloading sample data. Gave teh …

…install tasks better names and descriptions. Note unzipping the downloaded sample data is not working yet due to problems I am having with the zipdll nsis plugin.

git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Dec 29, 2006
1 parent d7938c6 commit b5caf1e675c29bdd813effeff982f22ee946e568
Showing with 22 additions and 7 deletions.
  1. +22 −7 win_build/qgis.nsi
@@ -11,13 +11,15 @@

SetCompressor zlib

; MUI 1.67 compatible ------
!include "MUI.nsh"
; Added by Tim for setting env vars (see this file on disk)
!include WriteEnvStr.nsh
;Added by Tim for a macro that will recursively delete the files in the install dir
!include RecursiveDelete.nsh

; MUI 1.67 compatible ------
!include "MUI.nsh"
;Added by Tim to support unzipping downloaded sample data automatically
!include ZipDLL.nsh

; MUI Settings
@@ -85,7 +87,7 @@ InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
ShowUnInstDetails show

Section "MainSection" SEC01
Section "Quantum GIS Application" SEC01
;Set the reg key so we get default toolbar layout
!include qgis_window_geometry.nsh
SetOutPath "$INSTDIR"
@@ -126,10 +128,22 @@ Section "MainSection" SEC01


Section "Sample Data" SEC02
; SetOutPath "$INSTDIR\SampleData\EnvironmentLayers\2050\A1F"
Section "Sample Data - Spearfish (GRASS)" SEC02
SetOutPath "$INSTDIR\SampleData\"
!insertmacro ZIPDLL_EXTRACT "$INSTDIR\SampleData\" "$INSTDIR\SampleData\" "<ALL>"
;ZipDLL::extractall "$INSTDIR\SampleData\" "$INSTDIR\SampleData\"
;the next line is a hack / workaround for a problem in zipdll.nsh

Section "Sample Data - Alaska (Non GRASS)" SEC03
SetOutPath "$INSTDIR\SampleData\Alaska\"
NSISdl::download alaska.tar.gz
; File "C:\dev/cpp/qgis/\qgis-release\SampleData\EnvironmentLayers\2050\A1F\Annual_dev/cpp/qgis/erature_range.asc"

; Shortcuts
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
@@ -158,7 +172,8 @@ SectionEnd
; Section descriptions
!insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "Main application files - you really need this!"
!insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "Sample data (not required if you have your own data already)"
!insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "20mb Download of sample data in GRASS format (not required if you have your own data already)"
!insertmacro MUI_DESCRIPTION_TEXT ${SEC03} "20mb Download of sample shapefiles and TIFF data for Alaska (not required if you have your own data already)"

0 comments on commit b5caf1e

Please sign in to comment.
You can’t perform that action at this time.