tis-ccleaner

5.69.0.7865-4
CCleaner is a computer utility program used to clean potentially unwanted files (including temporary internet files, where malicious programs and code tend to reside) and invalid Windows Registry entries from a computer, originally supporting Microsoft Windows only.
75087 downloads
Download
default icon

  Description 

  • package : tis-ccleaner
  • version : 5.69.0.7865-4
  • architecture : all
  • categories : Utilities
  • maintainer : WAPT Team,Jimmy PELÉ
  • description : CCleaner is a computer utility program used to clean potentially unwanted files (including temporary internet files, where malicious programs and code tend to reside) and invalid Windows Registry entries from a computer, originally supporting Microsoft Windows only.
  • locale : all
  • target_os : windows
  • min_wapt_version : 1.5
  • sources : https://www.ccleaner.com/ccleaner/builds
  • installed_size : 53272576
  • impacted_process : CCleaner64.exe,CCleaner.exe,CCUpdate.exe
  • description_fr : CCleaner (abréviation de Crap Cleaner) est un gratuiciel permettant d'optimiser le fonctionnement d'un ordinateur muni du système d'exploitation Windows. Il supprime les fichiers et les enregistrements inutiles, ce qui permet à l'ordinateur de fonctionner plus rapidement et libère de l'espace sur les périphériques de stockage (disques durs ou SSD).
  • description_pl : CCleaner (dawniej Crap Cleaner) – opracowany przez firmę Piriform program narzędziowy na licencji freemium służący między innymi do oczyszczania komputera z niepotrzebnych plików i nieprawidłowych wpisów rejestru systemu Windows.
  • description_de : CCleaner (früherer Name Crap Cleaner) ist ein kostenloses Programm zur Optimierung für die Betriebssysteme Windows, macOS und Android. Windows wird ab Windows XP auf 32- und 64-Bit-Systemen unterstützt.
  • description_es : CCleaner (anteriormente Crap Cleaner)​ es una aplicación gratuita, de código cerrado, que tiene como propósito mejorar el rendimiento de cualquier equipo que ejecute Microsoft Windows mediante la eliminación de los archivos innecesarios y las entradas inválidas del registro de Windows.
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Piriform
  • licence : Freemium
  • signature_date : 2020-08-03T11:54:13.156292
  • Homepage : https://www.ccleaner.com

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *
import requests,platform
try:
    import bs4 as BeautifulSoup
except:
    import BeautifulSoup

uninstallkey = []

# Declaring specific app values (TO CHANGE)
bin_name_string = 'ccsetup_%s_slim.exe'
silent_inst_arg = '/S'
uninstall_key = 'CCleaner'
app_path = makepath(programfiles,'CCleaner')
conf_file_path = makepath(programfiles,'CCleaner','ccleaner.ini')


def install():
    # Specific app values
    package_version = control.version.split('-')[0]
    bin_name = bin_name_string % package_version
    package_version_split = package_version.split('.')
    short_package_version = '%s.%s' % (package_version_split[0],package_version_split[1])
    version = short_package_version.replace('.','')

    # Installing the package
    install_exe_if_needed(bin_name
        ,silentflags=silent_inst_arg
        ,key=uninstall_key
        ,min_version=short_package_version)

    print('Configuring CCleaner with minimum intrusion parameters')

    inifile_writestring(conf_file_path,'Options','RunICS','0')
    inifile_writestring(conf_file_path,'Options','Monitoring','0')
    inifile_writestring(conf_file_path,'Options','SystemMonitoring','0')
    inifile_writestring(conf_file_path,'Options','CheckTrialOffer','0')
    inifile_writestring(conf_file_path,'Options','SystemMonitoringRunningNotification','0')
    inifile_writestring(conf_file_path,'Options','HelpImproveCCleaner','0')
    inifile_writestring(conf_file_path,'Options','DelayTemp','0')
    inifile_writestring(conf_file_path,'Options','HideWarnings','1')
    inifile_writestring(conf_file_path,'Options','UpdateAuto','0')
    inifile_writestring(conf_file_path,'Options','UpdateNotify','0')
    inifile_writestring(conf_file_path,'Options','UpdateCheck','0')
    inifile_writestring(conf_file_path,'Options','DefaultDetailedView','2')
    inifile_writestring(conf_file_path,'Options','ShowCleanWarning','False')
    inifile_writestring(conf_file_path,'Options','JumplistTasks','1')
    inifile_writestring(conf_file_path,'Options','SkipUAC','1')
    inifile_writestring(conf_file_path,'Options','BackupPrompt','0')

    registry_set(HKEY_LOCAL_MACHINE,r'SOFTWARE\Piriform\CCleaner','(Cfg)QuickClean','0')
    registry_set(HKEY_LOCAL_MACHINE,r'SOFTWARE\Piriform\CCleaner','(Cfg)QuickCleanIpm','0')
    registry_set(HKEY_LOCAL_MACHINE,r'SOFTWARE\Piriform\CCleaner','(Cfg)SoftwareUpdater','0')
    registry_set(HKEY_LOCAL_MACHINE,r'SOFTWARE\Piriform\CCleaner','(Cfg)SoftwareUpdaterIpm','0')
    registry_set(HKEY_LOCAL_MACHINE,r'SOFTWARE\Piriform\CCleaner','(Cfg)GetIpmForTrial','0')
    registry_set(HKEY_LOCAL_MACHINE,r'SOFTWARE\Piriform\CCleaner','(Cfg)HealthCheck','0')
    registry_set(HKEY_LOCAL_MACHINE,r'SOFTWARE\Piriform\CCleaner','(Cfg)HealthCheckIpm','0')
    registry_set(HKEY_LOCAL_MACHINE,r'SOFTWARE\Piriform\CCleaner','(Cfg)HealthCheckVersion','0')
    registry_set(HKEY_LOCAL_MACHINE,r'SOFTWARE\Piriform\CCleaner','(Cfg)AlphaIntegration','0')


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}

    # Specific app values
    app_name = control.name

    # Getting latest version from official website
    page = requests.get('https://www.ccleaner.com/ccleaner/download/slim',headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'},proxies=proxy).text
    bs = BeautifulSoup.BeautifulSoup(page)
    #bs = BeautifulSoup.BeautifulSoup(page,features="html.parser") # For bs4 only
    url_dl = bs.find('p', attrs={"class": u"fs-13"}).a["href"]
    latest_bin = url_dl.split('/')[-1]
    version = '%s.%s.%s' % (latest_bin[7],latest_bin[8],latest_bin[9])

    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)

		# Changing version of the package
        pe = PackageEntry().load_control_from_wapt('.')
        pe.version = '%s-%s'%(version,int(pe.version.split('-',1)[1])+1)
        pe.save_control_to_wapt('.')
        print('Changing version to ' + pe.version + ' in WAPT\\control')
        print('Update package done. You can now build-upload your package')
    else:
        print('This package is already up-to-date')

    # 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://www.ccleaner.com/ccleaner/version-history



No changelog.txt.
									
  manifest.sha256