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


def install():
    # Installing the software
    filename = glob.glob('*.msi')[0]

    #install_msi_if_needed(filename, properties={"WAZUH_MANAGER": "wazuh.comitari.fr"})
    install_msi_if_needed(filename)
    
    # check if wazuha service is running

    if not service_is_running("WazuhSvc"):
        print("Starting Wazuh Service")
        service_start("WazuhSvc")
