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

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls

def install():
    # Declaring local variables
    for soft in installed_softwares('New Relic CLI'):
        if Version(soft['version']) < Version(control.get_software_version()):
            run(uninstall_cmd(soft['key']))
    # Installing the software
    install_msi_if_needed('NewRelicCLIInstaller.msi')

    


