Ghostscript for WPKG on iPasserelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
2.3 KiB

13 years ago
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="ghostscript"
name="Ghostscript"
11 years ago
revision="3"
13 years ago
reboot="false"
priority="10" >
11 years ago
<variable name="PKG_VERSION" value="9.14" />
<variable name="EXE_VERSION" value="914" />
13 years ago
<variable architecture="x86" name="EXE_PATH" value="%SOFTWARE%\ghostscript\gs%EXE_VERSION%w32.exe" />
<variable architecture="x64" name="EXE_PATH" value="%SOFTWARE%\ghostscript\gs%EXE_VERSION%w64.exe" />
<check architecture="x86" type="file" condition="exists" path="%PROGRAMFILES%\gs\gs%PKG_VERSION%\bin\gswin32.exe"/>
<check architecture="x64" type="file" condition="exists" path="%PROGRAMFILES%\gs\gs%PKG_VERSION%\bin\gswin64.exe"/>
<install cmd='%EXE_PATH% /S' />
<!-- Remove the Ghostscript fonts installed separately by versions prior to 8.63 -->
<upgrade cmd='cmd /c "IF EXIST "%ProgramFiles%\gs\fonts\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%ProgramFiles%\gs\fonts\uninstal.txt"" -q' />
<!-- Uninstall Ghostscript 8.54 -->
<upgrade cmd='cmd /c "IF EXIST "%PROGRAMFILES%\gs\gs8.54\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%PROGRAMFILES%\gs\gs8.54\uninstal.txt"" -q' />
<!-- Uninstall Ghostscript 8.61 -->
<upgrade cmd='cmd /c "IF EXIST "%PROGRAMFILES%\gs\gs8.61\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%PROGRAMFILES%\gs\gs8.61\uninstal.txt"" -q' />
<!-- Uninstall Ghostscript 8.63 -->
<upgrade cmd='cmd /c "IF EXIST "%PROGRAMFILES%\gs\gs8.63\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%PROGRAMFILES%\gs\gs8.63\uninstal.txt"" -q' />
<!-- Remove redundant directory structure -->
<upgrade cmd='cmd /c "IF EXIST "%PROGRAMFILES%\gs\nul.ext" rmdir "%PROGRAMFILES%\gs" /S"' />
<upgrade include="install" />
<downgrade include="upgrade" />
<remove cmd='%PROGRAMFILES%\gs\gs%PKG_VERSION%\uninstgs.exe /S' />
<!-- Uninstall returns immediatly, so just wait a few seconds for it to remove before checking the status again
Unfortunatly, WINDOWS has no sleep commands -->
<remove cmd='%COMSPEC% /C ping -n 5 127.0.0.1 1>NUL 2>NUL' >
<exit code="any" />
</remove>
</package>
</packages>