GTK2 runtime

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

This is a silent installer and uninstaller for the GTK2 runtime available from the GladeWin project:

<package id="gtk" name="GTK2 runtime" revision="1" reboot="false" priority="3" >
 <check type="uninstall" condition="exists" path="GTK+ 2.8.18-1 runtime environment" />
 
 <install cmd='"%SOFTWARE%\gtk2\gtk+-2.8.18-setup-1.exe" /SP- /VERYSILENT /NORESTART' />
 <remove cmd='"%CommonProgramFiles%"\GTK\2.0\unins000.exe" /SILENT' />
  
</package>

---

A newer version with the installer from gtk-win.

<package id="gtk2" name="GTK2 runtime" revision="1" reboot="false" priority="2" >
 <check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\GTK2-Runtime\lib\libgtk-win32-2.0-0.dll" value="2.14.3.0"/>
 
 <install cmd='"%SOFTWARE%\gtk2-runtime-2.14.3-2008-09-25-ash.exe" /S' />
 <remove cmd='"%PROGRAMFILES%\GTK2-Runtime\gtk2_runtime_uninst.exe" /S' />
 
</package>

--- Installer for v2.14.7, which includes ensuring that files are included in the system path.

<package id="gkt-runtime" name="GTK+ Runtime" revision="20110416.2" reboot="false" priority="10">
	
	<check type="uninstall" condition="exists" path="GTK+ Runtime 2.14.7 rev a (remove only)" />

	<install cmd='"%SOFTWARE%\Utilities\gtkruntime\gtk-runtime-2.14.7-rev-a.exe" /S' />
	<install cmd='%COMSPEC% /c rmdir /S /Q "%ALLUSERSPROFILE%\Start Menu\Programs\Gtk+\"' />
	<install cmd='"%SOFTWARE%\wpkg\tools\pathman.exe" /as "%CommonProgramFiles%"\GTK\2.0\bin\' >
		<exit code="16777216" />
	</install>
	
	<upgrade cmd='%COMSPEC% /c if not exist "%CommonProgramFiles%\GTK\2.0\uninst.exe" "%SOFTWARE%\Utilities\gtkruntime\gtk-runtime-2.14.7-rev-a.exe" /S' />
	<upgrade cmd='%COMSPEC% /c rmdir /S /Q "%ALLUSERSPROFILE%\Start Menu\Programs\Gtk+\"' />
	<upgrade cmd='"%SOFTWARE%\wpkg\tools\pathman.exe" /as "%CommonProgramFiles%"\GTK\2.0\bin\' >
		<exit code="16777216" />
	</upgrade>

	<remove cmd='"%SOFTWARE%\wpkg\tools\pathman.exe" /rs %CommonProgramFiles%\GTK\2.0\bin\' >
		<exit code="256" />
	</remove>
	<remove cmd='"%CommonProgramFiles%\GTK\2.0\uninst.exe" /S' />

</package>