tis-exodus 0.10.0.0-7

  • package : tis-exodus
  • version : 0.10.0.0-7
  • description : Simple light Jabber / XMPP client
  • maintainer : TIS <technique@tranquil-it-systems.fr>
  • date : 2017-07-20 11:20:07

setup.py

#!/usr/bin/python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------
#    This file is part of WAPT
#    Copyright (C) 2013  Tranquil IT Systems http://www.tranquil.it
#    WAPT aims to help Windows systems administrators to deploy
#    setup and update applications on users PC.
#
#    WAPT is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    WAPT is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with WAPT.  If not, see <http://www.gnu.org/licenses/>.
#
# -----------------------------------------------------------------------

import platform
from setuphelpers import *
import win32api

uninstallkey = ['Exodus']
uninstallstring= []

exefile = os.path.join(programfiles32,'Exodus','Exodus.exe')

def install():
    global uninstallkey
    print("installing Exodus")
    run(r'exodus_0.10.0.0.exe /S')
    create_programs_menu_shortcut('Exodus',exefile)
    filecopyto('exodus.xml',makepath(programfiles32,'Exodus','exodus.xml'))

def session_setup():
    try:
        data = {
            'username':get_current_user(),
            'servername':get_domain_fromregistry(),
            'hostname':get_computername(),
            'nickname':win32api.GetUserNameEx(3)
            }
    except:
        data = {
            'username':get_current_user(),
            'servername':get_domain_fromregistry(),
            'hostname':get_computername(),
            'nickname':get_current_user()
            }

    exodus_xml = open(makepath(programfiles32,'Exodus','exodus.xml'),'rb').read() % data
    user_xml_path = makepath(user_appdata(),'exodus','Exodus.xml')
    if not os.path.isfile(user_xml_path):
        ensure_dir(user_xml_path)
        open(user_xml_path,'wb').write(exodus_xml)
    #import win32ui,win32con
    #if win32ui.MessageBox(u"Voulez-vous lancer le client de messagerie instantanée Exodus ?", "Exodus Jabber Client", win32con.MB_YESNOCANCEL) == win32con.IDYES:
    #    os.startfile(exefile)


    

manifest.sha1

[["Exodus.xml", "635fb6cfc52a0dd60bb27a150f7b32508b89a89c"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["exodus_0.10.0.0.exe", "985ce516703421b99ef50b8710828809a4486edf"], ["setup.py", "b4f8f8cd64ee7b594403ebb1be4f2086010e3160"], ["WAPT/control", "33e9372b374f77411acedaa14fb0851cda50ff10"], ["WAPT/wapt.psproj", "d140401965341ede69880cd6342c5db7040324b2"]]