tis-ccleaner 5.49.0.6856-9

  • package : tis-ccleaner
  • version : 5.49.0.6856-9
  • architecture : all
  • locale : all
  • description : Toolbox to clean, repair and optimize Windows
  • maintainer : Kevin Guerineau
  • date : 2018-11-26 16:42:57
  • min_wapt_version : 1.5
  • min_os_version : 5.1
  • max_os_version :
  • impacted_process : ccleaner.exe,ccleaner64.exe

setup.py

# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------
#    This file is part of WAPT
#    Copyright (C) 2013  Tranquil IT Systems http://www.tranquil.it
#    WAPT aims to help Windows systems administrators to deploy
#    setup and update applications on users PC.
#
#    WAPT is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    WAPT is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with WAPT.  If not, see <http://www.gnu.org/licenses/>.
#
# -----------------------------------------------------------------------
from setuphelpers import *
import requests,BeautifulSoup

uninstallkey = []

def install():
    print('installing tis-ccleaner')

    major_version = control['version'].split('-',1)[0].split('.',2)[0]
    minor_version = control['version'].split('-',1)[0].split('.',2)[1]

    version = major_version + minor_version
    min_version_registry = major_version + '.' + minor_version

    install_exe_if_needed('ccsetup%s.exe' % version ,silentflags="/S",key="CCleaner",min_version=min_version_registry)

    print("Override settings")
    filecopyto("ccleaner.ini", makepath(install_location("CCleaner"),"ccleaner.ini"))
    #https://singularlabs.com/software/ccenhancer/download-ccenhancer/
    filecopyto("winapp2.ini", makepath(install_location("CCleaner"),"winapp2.ini"))

def session_setup():
    registry_set(HKEY_CURRENT_USER,'software\\Piriform\\CCleaner', 'Monitoring','0')
    registry_set(HKEY_CURRENT_USER,'software\\Piriform\\CCleaner', 'SystemMonitoring','0')
    registry_set(HKEY_CURRENT_USER,'software\\Piriform\\CCleaner', 'UpdateCheck','0')
    registry_set(HKEY_CURRENT_USER,'software\\Piriform\\CCleaner', 'RunICS','0')
    registry_set(HKEY_CURRENT_USER,'software\\Piriform\\CCleaner', 'CheckTrialOffer','0')

def update_package():

    proxy = {'http':'http://srvproxy:3128','https':'http://srvproxy:3128'}

    page = requests.get('https://www.ccleaner.com/fr-fr/ccleaner/download/standard',headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'}).text
    bs = BeautifulSoup.BeautifulSoup(page)
    download = bs.find('p', attrs={"class": u"fs-13"}).a["href"]
    filename = download.rsplit('/',1)[1]

    # on ne telecharge que si on ne l'a pas deja
    if not isfile(filename):
        wget(download, filename, proxies=proxy)
    else:
        print(u'Le setup %s est déjà présent dans le paquet.' % filename)

    # on enleve les vieux exes
    for fn in glob.glob('*.exe'):
        if fn != filename :
            print('Suppression du vieux exe %s'%fn)
            remove_file(fn)

    vers = get_file_properties(filename)['ProductVersion']
    os.chdir(os.path.dirname(__file__))
    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())
    pe.version = vers + '-0'
    pe.save_control_to_wapt(os.getcwd())


if __name__ == '__main__':
    update_package()


    

Changelog

v5.23.5808(18 Oct 2016)- Improved Microsoft Edge and Internet Cache cleaning
  - Updated Microsoft Edge Tab cleaning
  - Improved Firefox History and Session cleaning
  - Optimized Silent Update functionality (Professional only)
  - Updated various translations
  - Minor bug fixes
  - Minor GUI improvementsView full version history...
    

manifest.sha256

winapp2.ini e3b53515584d873fa61f5fa0e1fc08fc53610fc6ba88b634074277bbe82eb7b4
WAPT/icon.png 76d79b65ee89d323a463b070cfbf161912c859717a479e4a8b2904ab14490bda
ccsetup549.exe 569f51d8459c61d8fbc9efcb97a5eb08228745385b526c015c77ab6c2b8ab832
WAPT/wapt.psproj df3e2fa87fea9c7bdfcc22039b9ef7303f092898882d9f3f4233f5d92f90b3c7
ccleaner.ini b1b19ab71e844ebb4b93e9d291173977dea7c6d083b77f1a903057df72f7ecc0
WAPT/certificate.crt 13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779
setup.py 0cebf82ba436ce4aa6b05fb17f00a8340c8e3a4a8c32feffacd7cf652402473a
WAPT/control 8daf17f61af3ecb8b4192784a309feb251a8dca8956e9fe70cf26e00714b4fef
WAPT/changelog.txt 8eee1256f1f94682e4ed15acc1b2238b959274d29e9f14b765255689afea0a7e