Shape viewer

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

Shape Viewer is a basic free viewer for ESRI's shapefile. Shape Viewer can be downloaded here. See the wikipedia entry for more info about shapefiles.

	<package id="shapefileviewer" name="Shapefile Viewer" revision="20120810.2" priority="10" reboot="false" >
		<depends package-id="vb6runtime" os="professional.+5\.1\.\d{4}" />
		<variable name="installdir" value='%PROGRAMFILES%\shapefileviewer' />
		<check type="logical" condition="and">
			<check type="file" condition="exists" path='%installdir%\ShapeViewer.exe' />
			<check type="file" condition="exists" path='%ALLUSERSPROFILE%\Start Menu\Programs\Shapefile Viewer.lnk' />
		<!-- Create the folders in programfiles -->
		<install cmd='%COMSPEC% /C mkdir "%installdir%"' >
			<exit code="0" />
			<exit code="1" />
		<!-- copy all the excutables -->
		<install cmd='%COMSPEC% /C xcopy /Q /E /Y /R /I "%SOFTWARE%\GIS\shapefileviewer\*" "%installdir%" >nul' />
		<!-- create the start menu shortcut -->
		<install architecture="x86" cmd='"%SOFTWARE%\wpkg\tools\3rd-party\nircmd-x32\nircmdc.exe" shortcut "%installdir%\ShapeViewer.exe" "~$folder.common_start_menu$\Programs" "Shapefile Viewer"'>
			<exit code="4206857" />
		<install architecture="x64" cmd='"%SOFTWARE%\wpkg\tools\3rd-party\nircmd-x64\nircmdc.exe" shortcut "%installdir%\ShapeViewer.exe" "~$folder.common_start_menu$\Programs" "Shapefile Viewer"'>
			<exit code="1073756732" />
		<upgrade include="remove" />
        <upgrade include="install" />
		<remove cmd='%comspec% /c del /Q /F "%ALLUSERSPROFILE%\Start Menu\Programs\Shapefile Viewer.lnk"' />
		<remove cmd='%COMSPEC% /C rmdir /S /Q "%installdir%"' />