tis-ccleaner
Version : 5.44.162.6575-2
- package : tis-ccleaner
- editor :
- version : 5.44.162.6575-2
- licence :
- architecture : all
- locale : all
- description : Toolbox to clean, repair and optimize Windows
- description_fr : utilitaire de choix pour nettoyer, réparer et optimiser rapidement Windows
- min_os_version : 5.1
- max_os_version :
- min_wapt_version :
- installed_size :
- impacted_process : ccleaner.exe,ccleaner64.exe
- signature_date : 20180705-111223
- maintainer : Kevin Guerineau
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", "13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779"], ["WAPT/wapt.psproj", "df3e2fa87fea9c7bdfcc22039b9ef7303f092898882d9f3f4233f5d92f90b3c7"], ["ccleaner.ini", "b1b19ab71e844ebb4b93e9d291173977dea7c6d083b77f1a903057df72f7ecc0"], ["ccsetup544.exe", "fe052ad062014cbb89fb70a6a1bd9c9c324a9e4b9b46a6d9753e34d85cddf8df"], ["setup.py", "6098a147191b80c2db66e2a2e3935849832a751f366cc78f414df65ecc010265"], ["WAPT/control", "be28cf00e8f25e4fe61ab45da69d91c27c3b2ea6a906a73255f110fb19b045ac"], ["WAPT/changelog.txt", "8eee1256f1f94682e4ed15acc1b2238b959274d29e9f14b765255689afea0a7e"]]