tis-ccleaner 5.35.0.6210-1

  • package : tis-ccleaner
  • version : 5.35.0.6210-1
  • description : utilitaire de choix pour nettoyer, réparer et optimiser rapidement Windows
  • maintainer : Simon Fonteneau
  • date : 2018-02-27 18:57:31

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 *

uninstallkey = []

def install():
    print('installing tis-ccleaner')
    exes = glob.glob('*.exe')

    def vers_ccleaner(ukey):
        if iswin64():
            return get_file_properties(makepath(install_location(ukey['key']),"CCleaner64.exe"))['ProductVersion'].replace(', ','.')
        else:
            return get_file_properties(makepath(install_location(ukey['key']),"CCleaner.exe"))['ProductVersion'].replace(', ','.')

    install_exe_if_needed(exes[0] ,silentflags="/S",key="CCleaner",min_version=control['version'].split('-',1)[0],get_version=vers_ccleaner)

    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():

    import requests,BeautifulSoup
    page = requests.get('http://www.piriform.com/ccleaner/download/standard',headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'}).text
    bs = BeautifulSoup.BeautifulSoup(page)
    download = bs.find(id="BigDownload").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)
    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"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "795d36d10109ca85357285f79090fac2be856e5830ea31fa913cc55cb825807b"], ["ccleaner.ini", "b1b19ab71e844ebb4b93e9d291173977dea7c6d083b77f1a903057df72f7ecc0"], ["ccsetup535.exe", "85d5309373cd1713eeb2416b4767c653e96a9e9cef3689dbb8f548cd23494319"], ["setup.py", "6098a147191b80c2db66e2a2e3935849832a751f366cc78f414df65ecc010265"], ["WAPT/control", "b31a7bf36c9f50517cd2c9eceb837010cf7d4a3a2948d9cdb540b2ea01551d9d"], ["WAPT/changelog.txt", "8eee1256f1f94682e4ed15acc1b2238b959274d29e9f14b765255689afea0a7e"]]