def is_wixext_installed():
    '''
       Check if wix extension is installed
    '''
    result = subprocess.run(['wix', 'extension', 'list'], stdout=subprocess.PIPE)
    return WIXEXT_TOOL in result.stdout.decode('utf-8')

       Check if wix extension is installed
    
packaging/createmsi.py