Scribus 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.

39 lines
1.5 KiB

<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="scribus"
name="Scribus"
revision="4"
reboot="false"
priority="10">
<variable name="PKG_VERSION" value="1.4.0" />
<variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\Scribus" />
<variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\Scribus" />
<depends package-id="ghostscript" />
<check type="uninstall" condition="exists" path="Scribus %PKG_VERSION%" />
<install cmd="%SOFTWARE%\scribus\scribus-%PKG_VERSION%-windows.exe /S /D=%INSTALL_PATH%" />
<install cmd='%COMSPEC% /C del /f "%ALLUSERSPROFILE%\Bureau\Scribus %PKG_VERSION%.lnk"'>
<exit code="0" />
<exit code="1" />
</install>
<install cmd='%COMSPEC% /C del /f "%PUBLIC%\Desktop\Scribus %PKG_VERSION%.lnk"'>
<exit code="0" />
<exit code="1" />
</install>
<upgrade include="remove" />
<upgrade include="install" />
<downgrade include="upgrade" />
<remove cmd='"%INSTALL_PATH%\uninst.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>