QGIS

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

Quantum GIS (QGIS) is a user friendly Open Source Geographic Information System (GIS) licensed under the GNU General Public License. QGIS is an official project of the Open Source Geospatial Foundation (OSGeo). It runs on Linux, Unix, Mac OSX, and Windows and supports numerous vector, raster, and database formats and functionalities.

Last standalone windows version can be downloaded here

Version 2.14

<package 
		id="qgis" 
		name="QGIS" 
		revision="%version%" 
		priority="10" 
		reboot="false">

	<variable name="version" value="2.14.10.1" />

	<check type="uninstall" condition="exists" path="QGIS 2.14 2.14.10 Essen"/>

	<!-- Need the extra check here becuase of this bug http://hub.qgis.org/issues/3096 -->
	<install cmd='%COMSPEC% /c if not exist "%PROGRAMFILES%\QGIS 2.14\OSGeo4W.bat" %SOFTWARE%\osgeo4w\QGIS-OSGeo4W-2.14.10-1-Setup-x86_64.exe /S' />

	<!-- TODO: include desktop icon removal -->
	
	<upgrade include="remove" />
	<upgrade include="install" />

	<remove cmd='"%PROGRAMFILES%\QGIS 2.14\Uninstall-QGIS.exe" /S _?=%ProgramFiles%\QGIS 2.14' />
	<!-- QGIS Uninstaller leaves some files and reg keys that prevent silent upgrade/reinstall -->
	<remove cmd='rmdir /s /q "C:\Program Files\QGIS 2.14" ' />
	<remove cmd='reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QGIS 2.14" /f' />
	<remove cmd='reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\QGIS 2.14" /f'/>
</package>

Version 1.8

<package id="qgis18" name="QGIS 1.8" revision="20120919.4" priority="10" reboot="false">
	<depends package-id="vcredistrib2005" />
	<depends package-id="vcredistrib2008" />
	<depends package-id="vcredistrib2010" />
	
	<check type="uninstall" condition="exists" path="Quantum GIS Lisboa 1.8.0 Lisboa"/>
	
	<!-- Need the extra check here becuase of this bug http://hub.qgis.org/issues/3096 -->
	<install cmd='%COMSPEC% /c if not exist "%PROGRAMFILES%\Quantum GIS Lisboa\bin\qgis.bat" %SOFTWARE%\GIS\QGIS\QGIS-OSGeo4W-1.8.0-1-Setup.exe /S' />
	
	<!-- Remove desktop icons -->
	<install os="professional.+5\.1\.\d{4}" cmd='%COMSPEC% /c if exist "%ALLUSERSPROFILE%\Desktop\GRASS GIS 6.4.2.lnk" del /f /Q "%ALLUSERSPROFILE%\Desktop\GRASS GIS 6.4.2.lnk"' />
	<install os="professional.+5\.1\.\d{4}" cmd='%COMSPEC% /c if exist "%ALLUSERSPROFILE%\Desktop\msys.lnk" del /f /Q "%ALLUSERSPROFILE%\Desktop\msys.lnk"' />
	<install os="professional.+5\.1\.\d{4}" cmd='%COMSPEC% /c if exist "%ALLUSERSPROFILE%\Desktop\Quantum GIS Desktop (1.8.0).lnk" del /f /Q "%ALLUSERSPROFILE%\Desktop\Quantum GIS Desktop (1.8.0).lnk"' />
	<install os="professional.+5\.1\.\d{4}" cmd='%COMSPEC% /c if exist "%ALLUSERSPROFILE%\Desktop\Quantum GIS Browser (1.8.0).lnk" del /f /Q "%ALLUSERSPROFILE%\Desktop\Quantum GIS Browser (1.8.0).lnk"' />
	<install os="professional.+5\.1\.\d{4}" cmd='%COMSPEC% /c if exist "%ALLUSERSPROFILE%\Desktop\OSGeo4W.lnk" del /f /Q "%ALLUSERSPROFILE%\Desktop\OSGeo4W.lnk"' />
	
	<install os="windows 7.+6\.1\.\d{4}" cmd='%COMSPEC% /c if exist "%PUBLIC%\Desktop\GRASS GIS 6.4.2.lnk" del /f /Q "%PUBLIC%\Desktop\GRASS GIS 6.4.2.lnk"' />
	<install os="windows 7.+6\.1\.\d{4}" cmd='%COMSPEC% /c if exist "%PUBLIC%\Desktop\msys.lnk" del /f /Q "%PUBLIC%\Desktop\msys.lnk"' />
	<install os="windows 7.+6\.1\.\d{4}" cmd='%COMSPEC% /c if exist "%PUBLIC%\Desktop\Quantum GIS Desktop (1.8.0).lnk" del /f /Q "%PUBLIC%\Desktop\Quantum GIS Desktop (1.8.0).lnk"' />
	<install os="windows 7.+6\.1\.\d{4}" cmd='%COMSPEC% /c if exist "%PUBLIC%\Desktop\Quantum GIS Browser (1.8.0).lnk" del /f /Q "%PUBLIC%\Desktop\Quantum GIS Browser (1.8.0).lnk"' />
	<install os="windows 7.+6\.1\.\d{4}" cmd='%COMSPEC% /c if exist "%PUBLIC%\Desktop\OSGeo4W.lnk" del /f /Q "%PUBLIC%\Desktop\OSGeo4W.lnk"' />	
	
	<upgrade include="remove" />
	<upgrade include="install" />

	<remove architecture="x86" cmd='"%PROGRAMFILES%\Quantum GIS Lisboa\Uninstall-QGIS.exe" /S _?=%ProgramFiles%\Quantum GIS Lisboa'/>
	<remove architecture="x64" cmd='"%PROGRAMFILES(x86)%\Quantum GIS Lisboa\Uninstall-QGIS.exe" /S _?=%ProgramFiles(x86)%\Quantum GIS Lisboa'/>
	
	<!-- the QGIS uninstaller folks and returns before it has finnished working. The hack means that WPKG will wait for long enough for the uninstall to complete before it rechecks -->
	<!--remove cmd='%COMSPEC% /c "%SOFTWARE%\wpkg\tools\sleep.exe" 300' >
		<exit code="0" reboot="delayed" />
	</remove-->
</package>

Version 1.7

<package id="qgis17" name="QGIS 1.7" revision="20111119.2" priority="10" reboot="false">
	<depends package-id="vcredistrib2005" />
	<depends package-id="vcredistrib2008" />
	<depends package-id="vcredistrib2010" />
		
	<check type="uninstall" condition="exists" path="Quantum GIS Wroclaw 1.7.1 Wroclaw"/>
	
	<install cmd='%COMSPEC% /c if not exist "%PROGRAMFILES%\Quantum GIS Wroclaw\bin\qgis.bat" %SOFTWARE%\GIS\QGIS\QGIS-OSGeo4W-1.7.1-c58071d-Setup.exe /S' />

	<install  cmd='%COMSPEC% /c if exist "%ALLUSERSPROFILE%\Desktop\GRASS GIS 6.4.1 (TclTk).lnk" del /f /Q "%ALLUSERSPROFILE%\Desktop\GRASS GIS 6.4.1 (TclTk).lnk"' />
	<install  cmd='%COMSPEC% /c if exist "%ALLUSERSPROFILE%\Desktop\GRASS GIS 6.4.1 (Text).lnk" del /f /Q "%ALLUSERSPROFILE%\Desktop\GRASS GIS 6.4.1 (Text).lnk"' />
	<install  cmd='%COMSPEC% /c if exist "%ALLUSERSPROFILE%\Desktop\GRASS GIS 6.4.1 (wxpython).lnk" del /f /Q "%ALLUSERSPROFILE%\Desktop\GRASS GIS 6.4.1 (wxpython).lnk"' />
	<install  cmd='%COMSPEC% /c if exist "%ALLUSERSPROFILE%\Desktop\msys.lnk" del /f /Q "%ALLUSERSPROFILE%\Desktop\msys.lnk"' />
	<install  cmd='%COMSPEC% /c if exist "%ALLUSERSPROFILE%\Desktop\Quantum GIS (1.7.1).lnk" del /f /Q "%ALLUSERSPROFILE%\Desktop\Quantum GIS (1.7.1).lnk"' />
	
	<upgrade cmd='%COMSPEC% /c if not exist "%PROGRAMFILES%\Quantum GIS Wroclaw\bin\qgis.bat" %SOFTWARE%\GIS\QGIS\QGIS-OSGeo4W-1.7.1-c58071d-Setup.exe /S' />

	<upgrade  cmd='%COMSPEC% /c if exist "%ALLUSERSPROFILE%\Desktop\GRASS GIS 6.4.1 (TclTk).lnk" del /f /Q "%ALLUSERSPROFILE%\Desktop\GRASS GIS 6.4.1 (TclTk).lnk"' />
	<upgrade  cmd='%COMSPEC% /c if exist "%ALLUSERSPROFILE%\Desktop\GRASS GIS 6.4.1 (Text).lnk" del /f /Q "%ALLUSERSPROFILE%\Desktop\GRASS GIS 6.4.1 (Text).lnk"' />
	<upgrade  cmd='%COMSPEC% /c if exist "%ALLUSERSPROFILE%\Desktop\GRASS GIS 6.4.1 (wxpython).lnk" del /f /Q "%ALLUSERSPROFILE%\Desktop\GRASS GIS 6.4.1 (wxpython).lnk"' />
	<upgrade  cmd='%COMSPEC% /c if exist "%ALLUSERSPROFILE%\Desktop\msys.lnk" del /f /Q "%ALLUSERSPROFILE%\Desktop\msys.lnk"' />
	<upgrade  cmd='%COMSPEC% /c if exist "%ALLUSERSPROFILE%\Desktop\Quantum GIS (1.7.1).lnk" del /f /Q "%ALLUSERSPROFILE%\Desktop\Quantum GIS (1.7.1).lnk"' />

	<remove cmd='"%PROGRAMFILES%\Quantum GIS Wroclaw\Uninstall-QGIS.exe" /S'/>
	<!-- the QGIS uninstaller folks and returns before it has finnished working. The hack means that WPKG will wait for long enough for the uninstall to complete before it rechecks -->
	<remove cmd='%COMSPEC% /c "%SOFTWARE%\wpkg\tools\sleep.exe" 300' >
		<exit code="0" reboot="delayed" />
	</remove>
</package>

Version 1.6

<package id="qgis16" name="QGIS16" revision="20111005.3" priority="10" reboot="false">
	<check type="uninstall" condition="exists" path="Quantum GIS Copiapo 1.6.0"/>
		
	<install cmd="%SOFTWARE%\GIS\QGIS\QGIS-OSGeo4W-1.6.0-14615-Setup-2.exe /S"/>
		
	<upgrade cmd='%COMSPEC% /c if not exist "%PROGRAMFILES%\Quantum GIS Copiapo\bin\qgis.bat" %SOFTWARE%\GIS\QGIS\QGIS-OSGeo4W-1.6.0-14615-Setup-2.exe /S' />

	<remove cmd='"%PROGRAMFILES%\Quantum GIS Copiapo\Uninstall-QGIS.exe" /S'>
		<exit code="0" reboot="false" />
	</remove>
	<!-- The Uninstall program returns before it has completed. As an ugly hack we force wpkg to wait for 10mins to give it enought time to complete. The sleep tool is from the Windows Resource Kit (http://ss64.com/nt/sleep.html) -->
	<remove cmd='%COMSPEC% /c "%SOFTWARE%\wpkg\tools\sleep.exe" 600' />
</package>

Version 1.4

<package id="QGIS" name="QGIS" revision="1" priority="0" reboot="false">
<check type="uninstall" condition="exists" path="Quantum GIS Enceladus 1.4.0-1"/>
<install cmd="%SOFTWARE%\QGIS\QGIS-1.4.0-1-No-GrassSetup.exe /S"/>
<remove cmd="%PROGRAMFILES%\Quantum GIS Enceladus\Uninstall-QGIS.exe /S"/>
</package>