tis-open-shell

4.4.142-6
Open-Shell-Menu is the maintained fork of Classic Shell - Get the Classic Start Menu Back in Windows
1753 downloads
Download

  Description 

  • package : tis-open-shell
  • version : 4.4.142-6
  • architecture : all
  • categories : Utilities
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELE
  • description : Open-Shell-Menu is the maintained fork of Classic Shell - Get the Classic Start Menu Back in Windows
  • locale : all
  • target_os : windows
  • min_wapt_version : 1.7
  • sources : https://github.com/Open-Shell/Open-Shell-Menu/releases/latest
  • installed_size :
  • impacted_process : ClassicExplorerSettings,ClassicIE_32,ClassicIE_64,StartMenu
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence : MIT
  • signature_date : 2020-06-22T17:10:28.542000
  • Homepage : https://open-shell.github.io/Open-Shell-Menu/
  • Conflicts :

  Setup.py 

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

uninstallkey = []

# Defining variables
bin_name_string = 'OpenShellSetup_%s.exe'
silent_args = '/passive'
app_uninstallkey = '{1CAB353D-D3F9-4C5D-A305-33D7BF270F1B}'


def install():
    # Initializing variables
    package_version = control.version.split('-')[0]
    bin_name = bin_name_string % package_version
    processes_to_kill = control.impacted_process

    # Uninstalling Classic Shell before installation
    for uninstall in installed_softwares('Classic Shell'):
        print('Uninstalling: %s' % uninstall['name'])
        run(uninstall_cmd(uninstall['key']))

    # Installing the package
    install_exe_if_needed(bin_name
        ,silentflags=silent_args
        ,key=app_uninstallkey
        ,min_version=package_version)

    # Killing first run
    killalltasks(processes_to_kill)


def session_setup():
    print("Disabling: auto-update-check")
    registry_set(HKEY_CURRENT_USER,r'SOFTWARE\OpenShell\OpenShell\Settings','Update',0,type=REG_DWORD)


def update_package():
    print('Download/Update package content from upstream binary sources')

    # Getting proxy informations from WAPT settings
    proxy = {}
    if platform.system()=='Windows' and isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxy = {'http':proxywapt,'https':proxywapt}

    # Initializing variables
    app_name = control.name
    git_repo = 'Open-Shell/Open-Shell-Menu'
    url_api = 'https://api.github.com/repos/%s/releases/latest' % git_repo
    bin_end = bin_name_string.split('.')[-1]

    # Getting latest version from official website
    print('API used is: ' + url_api)
    json_load = json.loads(wgets(url_api,proxies=proxy))

    for download in json_load['assets']:
        if download['name'].endswith(bin_end):
            url_dl = download['browser_download_url']
            break

    version = json_load['tag_name'].replace('v','')
    latest_bin = bin_name_string % version

    print('Latest ' + app_name + ' version is: ' + version)
    print('Download url is: ' + url_dl)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print('Downloading: ' + latest_bin)
        wget(url_dl,latest_bin,proxies=proxy)

        # Checking version from file
        version_from_file = get_file_properties(latest_bin)['ProductVersion']
        if version != version_from_file and version_from_file != '':
            version = version_from_file
            old_latest_bin = latest_bin
            latest_bin = bin_name_string % version
            if isfile(latest_bin):
                remove_file(latest_bin)
            os.rename(old_latest_bin,latest_bin)
            print('Verified latest ' + app_name + ' version is: ' + version)

        # Changing version of the package
        control.version = '%s-%s'%(version,int(control.version.split('-')[-1])+1)
        control.save_control_to_wapt()
        print('Changing version to: ' + control.version + ' in WAPT\\control')

    # Deleting outdated binaries
    for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi') or glob.glob('*.zip'):
        if bin_in_dir != latest_bin :
            print('Outdated binary: ' + bin_in_dir + ' Deleted')
            remove_file(bin_in_dir)




										

  Changelog 



Changelog software url : https://github.com/Open-Shell/Open-Shell-Menu/releases



No changelog.txt.
									
  manifest.sha256