tis-firebirdclient 2.5.7.27050-2

  • package : tis-firebirdclient
  • version : 2.5.7.27050-2
  • description : Firebird database SQL client
  • maintainer : Hubert TOUVET
  • date : 2017-07-20 11:20:13

setup.py

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey=[]

def install():
    # if you want to modify the keys depending on environment (win32/win64... params..)
    print('installing Firebird DB client components')
    if service_installed('FirebirdServerDefaultInstance') or service_installed('FirebirdServerDefaultInstance'):
        error('Firebird server installed, keeping it to avoid breaking a Server.')

    # for Server.
    if service_installed('FirebirdServerDefaultInstance') and service_is_running('FirebirdServerDefaultInstance'):
        print "Stopping Firebird server"
        service_stop('FirebirdServerDefaultInstance')
    if service_installed('FirebirdServerDefaultInstance') and service_is_running('FirebirdGuardianDefaultInstance'):
        print "Stopping Firebird guardian"
        service_stop('FirebirdGuardianDefaultInstance')

    # for old msi style install
    old = installed_softwares('FBDBServer')
    if old:
        for soft in old:
            if Version(soft['version']) < Version('2.5.7.27050'):
                run(uninstall_cmd(soft['key']))

    args = []
    args.append('/VERYSILENT /SUPPRESSMSGBOXES')
    args.append('/NORESTART')
    # client only
    args.append('/COMPONENTS="ClientComponent"')
    args.append('/NOCPL')
    args.append('/COPYFBCLIENT')
    #args.append('/MERGETASKS=CopyFbClientToSysTask')
    install_exe_if_needed('Firebird-2.5.7.27050_0_Win32.exe',' '.join(args),key='FBDBServer_2_5_is1',min_version='2.5.7.27050',killbefore=['flamerobin.exe'])

    if service_installed('FirebirdServerDefaultInstance') and not service_is_running('FirebirdServerDefaultInstance'):
        print "Starting Firebird server"
        service_start('FirebirdServerDefaultInstance')
    if service_installed('FirebirdServerDefaultInstance') and not service_is_running('FirebirdGuardianDefaultInstance'):
        print "Starting Firebird guardian"
        service_start('FirebirdGuardianDefaultInstance')


    

manifest.sha1

[["WAPT/icon.png", "5c497464b8225ec277080456a3f2f01e73354103"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "29705b3b5de9fe6bf2001caf814fec9ccb42ecce"], ["setup.py", "2e6ca68bba0a01d71a32950d06e721520d0a0115"], ["WAPT/control", "d95c74698a3f01ebd87a4510ad0e705fb83a0303"], ["Firebird-2.5.7.27050_0_Win32.exe", "9459649d4d84a5617a13aa14c173b315eec4bd32"]]