Gajim

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

This is a silent installer for Gajim.

The goal of Gajim is to provide a full featured and easy to use Jabber client. It is released under the GNU General Public License.

Gajim is available on Windows with an installer which provide Gtk, python libs and Gajim. Download available here Windows-installer

<?xml version="1.0" encoding="UTF-8"?>

<packages:packages
        xmlns:packages="http://www.wpkg.org/packages" xmlns:wpkg="http://www.wpkg.org/wpkg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.wpkg.org/packages ../../xsd/packages.xsd" >

    <package id="gajim"
            name="Gajim"
            revision="%PKG_VERSION%"
            reboot="false"
            priority="10">

        <variable name="PKG_VERSION"        value="1.9.0" />
        <variable name="PKG_NAME"           value="Gajim" />
        <variable name="PKG_INSTALL_SWITCH" value="/S" />
        <variable name="PKG_REMOVE_SWITCH"  value="/S _?=%ProgramFiles%\Gajim\" />

        <check type="uninstall" condition="versiongreaterorequal" path="%PKG_NAME% %PKG_VERSION% (64-Bit)" value="%PKG_VERSION%" />
        <install cmd='"%SOFTWARE%\gajim\Gajim-%PKG_VERSION%-64bit.exe" %PKG_INSTALL_SWITCH% ' />

        <upgrade include="install" />

        <remove cmd='"%ProgramFiles%\Gajim\uninstall.exe" %PKG_REMOVE_SWITCH%' />
        <remove cmd='%ComSpec% /C if exist "%ProgramFiles%\Gajim\uninstall.exe" del "%ProgramFiles%\Gajim\uninstall.exe"' />
        <remove cmd='%ComSpec% /C if exist "%ProgramFiles%\Gajim\" rmdir "%ProgramFiles%\Gajim\"' />
    </package>
</packages:packages>

If you want to modify some options in your gajim (add a default server ...), you must write a wpkg package or a batch script to edit %USERPROFILE%\Application Data\Gajim\Config .

The script should looks like :

echo. >>"%USERPROFILE%\Application Data\Gajim\Config"
echo accounts.your-gajim-account-name.http_auth = ask>> "%USERPROFILE%\Application Data\Gajim\Config"
echo accounts.your-gajim-account-name.autopriority_invisible = 10>> "%USERPROFILE%\Application Data\Gajim\Config"
echo accounts.your-gajim-account-name.msgwin-width = 480>> "%USERPROFILE%\Application Data\Gajim\Config"
echo accounts.your-gajim-account-name.dont_ack_subscription = False>> "%USERPROFILE%\Application Data\Gajim\Config"
echo accounts.your-gajim-account-name.restore_last_status = False>> "%USERPROFILE%\Application Data\Gajim\Config"
echo accounts.your-gajim-account-name.time_for_ping_alive_answer = 60>> "%USERPROFILE%\Application Data\Gajim\Config"
echo accounts.your-gajim-account-name.msgwin-height = 440>> "%USERPROFILE%\Application Data\Gajim\Config"
echo accounts.your-gajim-account-name.zeroconf_jabber_id = >> "%USERPROFILE%\Application Data\Gajim\Config"
echo accounts.your-gajim-account-name.subscribe_activity = True>> "%USERPROFILE%\Application Data\Gajim\Config"