|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<packages>
|
|
|
|
<package id="gajim"
|
|
|
|
name="Client XMPP Gajim"
|
|
|
|
revision="3"
|
|
|
|
reboot="false"
|
|
|
|
priority="10">
|
|
|
|
|
|
|
|
<variable name="PKG_VERSION" value='0.15.4' />
|
|
|
|
<variable name="PKG_RELEASE" value="3" />
|
|
|
|
<variable name="SETUP" value='gajim-%PKG_VERSION%-%PKG_RELEASE%.exe' />
|
|
|
|
<variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\Gajim" />
|
|
|
|
<variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\Gajim" />
|
|
|
|
|
|
|
|
<check type="uninstall" condition="versiongreaterorequal" path="Gajim" value="%PKG_VERSION%" />
|
|
|
|
|
|
|
|
<install include='remove' />
|
|
|
|
<install cmd='%SOFTWARE%\gajim\%SETUP% /S' />
|
|
|
|
<install cmd='%COMSPEC% /C reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v Gajim /t REG_SZ /d "%COMSPEC% /C start /D\"%INSTALL_PATH%\bin\" gajim.exe"' />
|
|
|
|
<!-- XP -->
|
|
|
|
<install cmd='%COMSPEC% /C del /F /Q "%ALLUSERSPROFILE%\Bureau\Gajim.lnk"'>
|
|
|
|
<exit code="any" />
|
|
|
|
</install>
|
|
|
|
<!-- Vista / 7 -->
|
|
|
|
<install cmd='%COMSPEC% /C del /F /Q "%PUBLIC%\Desktop\Gajim.lnk"'>
|
|
|
|
<exit code="any" />
|
|
|
|
</install>
|
|
|
|
|
|
|
|
<upgrade include='install' />
|
|
|
|
|
|
|
|
<downgrade include="install" />
|
|
|
|
|
|
|
|
<remove cmd="taskkill /F /IM gajim.exe">
|
|
|
|
<exit code="0" />
|
|
|
|
<exit code="128" />
|
|
|
|
</remove>
|
|
|
|
<remove cmd='%COMSPEC% /C if exist "%INSTALL_PATH%\Uninstall.exe" "%INSTALL_PATH%\Uninstall.exe" /S _?=%INSTALL_PATH%' />
|
|
|
|
<remove cmd='%COMSPEC% /C reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Gajim" /f'>
|
|
|
|
<exit code="any" />
|
|
|
|
</remove>
|
|
|
|
</package>
|
|
|
|
</packages>
|