|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<packages>
|
|
|
|
<package id="inkscape"
|
|
|
|
name="Inkscape"
|
|
|
|
revision="7"
|
|
|
|
reboot="false"
|
|
|
|
priority="10">
|
|
|
|
<variable name="PKG_VERSION" value="0.91" />
|
|
|
|
<variable architecture="x86" name="OLD_INSTALL_PATH" value="%PROGRAMFILES%\Inkscape" />
|
|
|
|
<variable architecture="x64" name="OLD_INSTALL_PATH" value="%PROGRAMFILES(x86)%\Inkscape" />
|
|
|
|
|
|
|
|
<check type="uninstall" condition="exists" path="Inkscape %PKG_VERSION%" />
|
|
|
|
|
|
|
|
<install include="remove" />
|
|
|
|
<install architecture="x86" cmd='msiexec /qn /i "%SOFTWARE%\inkscape\inkscape-%PKG_VERSION%.msi"' />
|
|
|
|
<install architecture="x64" cmd='msiexec /qn /i "%SOFTWARE%\inkscape\inkscape-%PKG_VERSION%-x64.msi"' />
|
|
|
|
<install cmd='%COMSPEC% /C del /q /f "%ALLUSERSPROFILE%\Bureau\Inkscape.lnk"'>
|
|
|
|
<exit code="0" />
|
|
|
|
<exit code="1" />
|
|
|
|
</install>
|
|
|
|
<install cmd='%COMSPEC% /C del /q /f "%PUBLIC%\Desktop\Inkscape %PKG_VERSION%.lnk"'>
|
|
|
|
<exit code="0" />
|
|
|
|
<exit code="1" />
|
|
|
|
</install>
|
|
|
|
|
|
|
|
<upgrade include="install" />
|
|
|
|
|
|
|
|
<downgrade include="install" />
|
|
|
|
|
|
|
|
<remove cmd='%COMSPEC% /C IF EXIST "%OLD_INSTALL_PATH%\uninstall.exe" "%OLD_INSTALL_PATH%\uninstall.exe" /S' />
|
|
|
|
<remove architecture="x86" cmd='msiexec /qn /norestart /x "%SOFTWARE%\inkscape\inkscape-%PKG_VERSION%.msi"'>
|
|
|
|
<exit code='any' />
|
|
|
|
</remove>
|
|
|
|
<remove architecture="x64" cmd='msiexec /qn /norestart /x "%SOFTWARE%\inkscape\inkscape-%PKG_VERSION%-64.msi"'>
|
|
|
|
<exit code='any' />
|
|
|
|
</remove>
|
|
|
|
</package>
|
|
|
|
</packages>
|