Difference between revisions of "Gajim"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(New page: 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 availab...)
 
(Updated the install script)
Line 8: Line 8:
 
<?xml version="1.0" encoding="UTF-8"?>
 
<?xml version="1.0" encoding="UTF-8"?>
  
<packages>
+
<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
+
    <package id="gajim"
  id="gajim"
+
            name="Gajim"
  name="Gajim"
+
            revision="%PKG_VERSION%"
  revision="1"
+
            reboot="false"
  reboot="false"
+
            priority="10">
  priority="10">
+
  
  <check type="uninstall" condition="exists" path="Gajim" />
+
        <variable name="PKG_VERSION"       value="1.8.4" />
 +
        <variable name="PKG_NAME"          value="Gajim" />
 +
        <variable name="PKG_SOURCE"        value="%SOFTWARE%\gajim\%PKG_NAME%-%PKG_VERSION%-64bit.exe"/>
 +
        <variable name="PKG_DESTINATION"    value="%ProgramFiles%\%PKG_NAME%\" />
 +
        <variable name="PKG_INSTALL_SWITCH" value="/S" />
 +
        <variable name="PKG_REMOVE_SWITCH"  value="/S _?=%PKG_DESTINATION%" />
  
  <install cmd='"%SOFTWARE%\gajim\gajim-0.12.3-1.exe" /S' />
+
        <check type="uninstall" condition="versiongreaterorequal" path="%PKG_NAME% %PKG_VERSION% (64-Bit)" value="%PKG_VERSION%" />
  <remove cmd="taskkill /F /IM gajim.exe">
+
        <install cmd='"%PKG_SOURCE%" %PKG_INSTALL_SWITCH% ' />
                <exit code="0" />
+
                <exit code="128" />
+
  </remove>
+
  
  <remove cmd='"%PROGRAMFILES%\Gajim\Uninstall.exe" /S' />
+
        <upgrade include="install" />
  
</package>
+
        <remove cmd='"%PKG_DESTINATION%\uninstall.exe" %PKG_REMOVE_SWITCH%' />
</packages>
+
        <remove cmd='%ComSpec% /C if exist "%PKG_DESTINATION%\uninstall.exe" del "%PKG_DESTINATION%\uninstall.exe"' />
 +
        <remove cmd='%ComSpec% /C if exist "%PKG_DESTINATION%" rmdir "%PKG_DESTINATION%"' />
 +
    </package>
 +
</packages:packages>
 
</source>
 
</source>
  

Revision as of 16:40, 20 May 2024

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.8.4" />
        <variable name="PKG_NAME"           value="Gajim" />
        <variable name="PKG_SOURCE"         value="%SOFTWARE%\gajim\%PKG_NAME%-%PKG_VERSION%-64bit.exe"/>
        <variable name="PKG_DESTINATION"    value="%ProgramFiles%\%PKG_NAME%\" />
        <variable name="PKG_INSTALL_SWITCH" value="/S" />
        <variable name="PKG_REMOVE_SWITCH"  value="/S _?=%PKG_DESTINATION%" />

        <check type="uninstall" condition="versiongreaterorequal" path="%PKG_NAME% %PKG_VERSION% (64-Bit)" value="%PKG_VERSION%" />
        <install cmd='"%PKG_SOURCE%" %PKG_INSTALL_SWITCH% ' />

        <upgrade include="install" />

        <remove cmd='"%PKG_DESTINATION%\uninstall.exe" %PKG_REMOVE_SWITCH%' />
        <remove cmd='%ComSpec% /C if exist "%PKG_DESTINATION%\uninstall.exe" del "%PKG_DESTINATION%\uninstall.exe"' />
        <remove cmd='%ComSpec% /C if exist "%PKG_DESTINATION%" rmdir "%PKG_DESTINATION%"' />
    </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"