Skip to content

Commit

Permalink
include windows installer updates
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-1_5_0@14076 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 13, 2010
1 parent bab2337 commit ab93815
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
9 changes: 6 additions & 3 deletions ms-windows/QGIS-Installer.nsi
Expand Up @@ -38,7 +38,7 @@ RequestExecutionLevel admin

;NSIS Includes

!include "MUI2.nsh"
!include "MUI.nsh"
!include "LogicLib.nsh"

;----------------------------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -89,6 +89,7 @@ RequestExecutionLevel admin
!define INSTALLER_DISPLAYED_NAME "${DISPLAYED_NAME}"

!addplugindir osgeo4w/untgz
!addplugindir osgeo4w/nsis
!endif

;----------------------------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -282,6 +283,7 @@ FunctionEnd

;Installer Pages

!define MUI_WELCOMEPAGE_TITLE_3LINES
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE ".\Installer-Files\LICENSE.txt"

Expand All @@ -295,6 +297,7 @@ FunctionEnd
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!define MUI_FINISHPAGE_TITLE_3LINES
!insertmacro MUI_UNPAGE_FINISH

;----------------------------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -400,7 +403,7 @@ Section "Quantum GIS" SecQGIS
SetShellVarContext current

!if ${INSTALLER_TYPE} == "OSGeo4W"
CreateShortCut "$DESKTOP\${QGIS_BASE}.lnk" "$INSTALL_DIR\bin\nircmd.exe" 'exec hide "$INSTALL_DIR\bin\qgis-dev.bat"' \
CreateShortCut "$DESKTOP\${QGIS_BASE}.lnk" "$INSTALL_DIR\bin\nircmd.exe" 'exec hide "$INSTALL_DIR\bin\qgis.bat"' \
"$INSTALL_DIR\icons\QGIS.ico" "" SW_SHOWNORMAL "" "Launch ${COMPLETE_NAME}"
!else
CreateShortCut "$DESKTOP\${QGIS_BASE}.lnk" "$INSTALL_DIR\bin\qgis.exe" ""\
Expand All @@ -413,7 +416,7 @@ Section "Quantum GIS" SecQGIS
CreateDirectory "$SMPROGRAMS\${QGIS_BASE}"

!if ${INSTALLER_TYPE} == "OSGeo4W"
CreateShortCut "$SMPROGRAMS\${QGIS_BASE}\${QGIS_BASE}.lnk" "$INSTALL_DIR\bin\nircmd.exe" 'exec hide "$INSTALL_DIR\bin\qgis-dev.bat"' \
CreateShortCut "$SMPROGRAMS\${QGIS_BASE}\${QGIS_BASE}.lnk" "$INSTALL_DIR\bin\nircmd.exe" 'exec hide "$INSTALL_DIR\bin\qgis.bat"' \
"$INSTALL_DIR\icons\QGIS.ico" "" SW_SHOWNORMAL "" "Launch ${COMPLETE_NAME}"
!else
CreateShortCut "$SMPROGRAMS\${QGIS_BASE}\${QGIS_BASE}.lnk" "$INSTALL_DIR\bin\qgis.exe" ""\
Expand Down
9 changes: 4 additions & 5 deletions ms-windows/osgeo4w/creatensis.pl
Expand Up @@ -52,7 +52,7 @@ sub getDeps {
}
}

getDeps("qgis-dev");
getDeps("qgis-full");

if(-f "../addons/bin/NCSEcw.dll") {
print "Enabling ECW support...\n";
Expand All @@ -64,9 +64,6 @@ sub getDeps {
getDeps("gdal16-mrsid")
}

delete $pkgs{"qgis-dev"};


foreach my $p ( keys %pkgs ) {
$f = "$root/$file{$p}";
$f =~ s/\/\.\//\//g;
Expand Down Expand Up @@ -106,7 +103,7 @@ sub getDeps {

system "cd apps/nircmd; unzip ../../../packages/nircmd.zip && mv nircmd.exe ../../bin";

system "tar -C ../addons -cf . | tar -xf -" if -d "../addons";
system "tar -C ../addons -cf - . | tar -xf -" if -d "../addons";

chdir "..";
}
Expand Down Expand Up @@ -195,6 +192,8 @@ sub getDeps {
$revision =~ s/\D+$//g;
close F;

system "unzip packages/Untgz.zip" unless -d "untgz";

chdir "..";

my $cmd = "makensis";
Expand Down
2 changes: 1 addition & 1 deletion ms-windows/osgeo4w/package.cmd
Expand Up @@ -14,7 +14,7 @@ set PACKAGE=%2
set PACKAGENAME=%3
if "%VERSION%"=="" goto error
if "%PACKAGE%"=="" goto error
if "%PACKAGENAME%"=="" set PACKAGENAME=qgis-dev
if "%PACKAGENAME%"=="" set PACKAGENAME=qgis

path %SYSTEMROOT%\system32;%SYSTEMROOT%;%SYSTEMROOT%\System32\Wbem;%PROGRAMFILES%\CMake 2.6\bin
set PYTHONPATH=
Expand Down

0 comments on commit ab93815

Please sign in to comment.