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.
38 lines
1.6 KiB
38 lines
1.6 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<packages>
|
|
<package id="scribus"
|
|
name="Scribus"
|
|
revision="6"
|
|
reboot="false"
|
|
priority="10">
|
|
|
|
<variable name="PKG_VERSION" value="1.4.2" />
|
|
<variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\Scribus" />
|
|
<variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\Scribus" />
|
|
<variable architecture="x86" name="EXE_PATH" value="%SOFTWARE%\scribus\scribus-%PKG_VERSION%-windows.exe" />
|
|
<variable architecture="x86" name="EXE_PATH" value="%SOFTWARE%\scribus\scribus-%PKG_VERSION%-windows-x64.exe" />
|
|
|
|
<depends package-id="ghostscript" />
|
|
|
|
<check type="uninstall" condition="exists" path="Scribus %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\uninst.exe'/>
|
|
</package>
|
|
</packages>
|
|
|