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.

37 lines
1.5 KiB

<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="scribus"
name="Scribus"
revision="8"
reboot="false"
priority="10">
<variable name="PKG_VERSION" value="1.4.2" />
<variable name="INSTALL_PATH" value="%PROGRAMFILES%\Scribus" />
<variable architecture="x86" name="EXE_PATH" value="%SOFTWARE%\scribus\scribus-%PKG_VERSION%-windows.exe" />
<variable architecture="x64" name="EXE_PATH" value="%SOFTWARE%\scribus\scribus-%PKG_VERSION%-windows-x64.exe" />
<depends package-id="ghostscript" />
<check type="uninstall" condition="versionequalto" path="Scribus.*" value="%PKG_VERSION%" />
<install cmd='"%EXE_PATH%" /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 _?=%INSTALL_PATH%'/>
<!-- on x64, remove the 32bits version if present -->
<remove architecture="x64" cmd='%COMSPEC% /C if exist "%PROGRAMFILES(x86)%\Scribus\uninst.exe" "%PROGRAMFILES(x86)%\Scribus\uninst.exe" /S _?=%PROGRAMFILES(x86)%\Scribus'/>
</package>
</packages>