Skip to content

Commit 8fb0e77

Browse files
author
timlinux
committedFeb 26, 2007
Dont install sample data by default since it requires a net connection
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6713 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 2bb5e1b commit 8fb0e77

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed
 

‎win_build/qgis.nsi

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ ShowUnInstDetails show
9292
Section "Quantum GIS Application" SEC01
9393
;this section is mandatory
9494
SectionIn RO
95+
;Added by Tim to install for all users not just the logged in user..
96+
;make sure this is at the top of the section
97+
SetShellVarContext all
98+
9599

96100
;Set the reg key so we get default toolbar layout
97101
!include qgis_window_geometry.nsh
@@ -135,7 +139,13 @@ Section "Quantum GIS Application" SEC01
135139

136140
SectionEnd
137141

138-
Section "Sample Data - Spearfish (GRASS)" SEC02
142+
Section "Development headers" SEC03
143+
SetOutPath "$INSTDIR\include"
144+
File "C:\Program Files\qgis${PRODUCT_VERSION_NUMBER}\include\*.h"
145+
SectionEnd
146+
147+
; /o means unchecked by default
148+
Section /o "Sample Data - Spearfish (GRASS)" SEC03
139149
SetOutPath "$INSTDIR\SampleData\"
140150
NSISdl::download http://grass.itc.it/sampledata/spearfish_grass60data-0.3.zip spearfish.zip
141151
!insertmacro ZIPDLL_EXTRACT "$INSTDIR\SampleData\spearfish.zip" "$INSTDIR\SampleData\" "<ALL>"
@@ -149,12 +159,9 @@ Section "Sample Data - Spearfish (GRASS)" SEC02
149159

150160
SectionEnd
151161

152-
Section "Development headers" SEC03
153-
SetOutPath "$INSTDIR\include"
154-
File "C:\Program Files\qgis${PRODUCT_VERSION_NUMBER}\include\*.h"
155-
SectionEnd
156162

157-
Section "Sample Data - Alaska (Non GRASS)" SEC04
163+
; /o means unchecked by default
164+
Section /o "Sample Data - Alaska (Non GRASS)" SEC04
158165
SetOutPath "$INSTDIR\SampleData\Alaska\"
159166
NSISdl::download http://qgis.org/uploadfiles/qgis_sample_data.zip alaska.zip
160167
!insertmacro ZIPDLL_EXTRACT "$INSTDIR\SampleData\Alaska\alaska.zip" "$INSTDIR\SampleData\Alaska" "<ALL>"
@@ -165,6 +172,10 @@ SectionEnd
165172

166173

167174
Section -AdditionalIcons
175+
;Added by Tim to install for all users not just the logged in user..
176+
;make sure this is at the top of the section
177+
SetShellVarContext all
178+
168179
SetOutPath $INSTDIR
169180
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
170181
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
@@ -187,8 +198,9 @@ SectionEnd
187198
; Section descriptions
188199
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
189200
!insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "Main application files - you really need this!"
190-
!insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "20mb Download of sample data in GRASS format (not required if you have your own data already)"
191-
!insertmacro MUI_DESCRIPTION_TEXT ${SEC03} "20mb Download of sample shapefiles and TIFF data for Alaska (not required if you have your own data already)"
201+
!insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "Header files for developers."
202+
!insertmacro MUI_DESCRIPTION_TEXT ${SEC03} "20mb Download of sample data in GRASS format (not required if you have your own data already)"
203+
!insertmacro MUI_DESCRIPTION_TEXT ${SEC04} "20mb Download of sample shapefiles and TIFF data for Alaska (not required if you have your own data already)"
192204
!insertmacro MUI_FUNCTION_DESCRIPTION_END
193205

194206

@@ -204,6 +216,10 @@ FunctionEnd
204216

205217

206218
Section Uninstall
219+
;Added by Tim to uninstall for all users not just the logged in user..
220+
;make sure this is at the top of the section
221+
SetShellVarContext all
222+
207223
# remove the variable
208224
Push PROJ_LIB
209225
Call un.DeleteEnvStr

0 commit comments

Comments
 (0)