Difference between revisions of "Shape viewer"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Created page with "Shape Viewer is a basic free viewer for ESRI's shapefile. Shape Viewer can be downloaded [http://www.qarah.com/shapeviewer/ here]. See the [http://en.wikipedia.org/wiki/Shapefile...")
 
m
 
Line 38: Line 38:
 
</packages>
 
</packages>
 
</source>
 
</source>
 +
 +
[[Category: Silent Installers]]

Latest revision as of 04:31, 27 March 2013

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.

<packages>
	<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' />
		</check>
		
		<!-- Create the folders in programfiles -->
		<install cmd='%COMSPEC% /C mkdir "%installdir%"' >
			<exit code="0" />
			<exit code="1" />
		</install>
		<!-- 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>
		<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" />
        </install>
		
		<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%"' />

	</package>
</packages>