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.
47 lines
2.3 KiB
47 lines
2.3 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<packages>
|
|
<package id="ghostscript"
|
|
name="Ghostscript"
|
|
revision="7"
|
|
reboot="false"
|
|
priority="10" >
|
|
|
|
<variable name="PKG_VERSION" value="9.19" />
|
|
<variable name="EXE_VERSION" value="919" />
|
|
|
|
<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>
|
|
|