Détails du package
smp-disable-onedrive
Revenir à la liste des packages
Fichier control :
package : smp-disable-onedrive
version : 1.0.0-11
architecture : all
section : base
priority : optional
name :
categories :
maintainer : TIS
description : Removes Microsoft OneDrive
depends :
conflicts : smp-onedrive
maturity :
locale :
target_os : windows
min_os_version : 10
max_os_version :
min_wapt_version : 1.5.1.20
sources :
installed_size :
impacted_process :
description_fr : Supprime Microsoft OneDrive
description_pl : Odinstaluj Microsoft OneDrive
description_de : Deinstallieren Sie Microsoft OneDrive
description_es : Desinstalar Microsoft OneDrive
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule : 60
editor :
keywords :
licence :
homepage :
package_uuid : 7d8320d6-cfd3-4257-beaf-626e41a8def3
valid_from :
valid_until :
forced_install_on :
changelog :
signer : wapt.lesfourmisduweb.org
signer_fingerprint: 1e54425be03a2a3ea1a264b40d984c31f17a6a489a3b722acb993cbf6561e903
signature : Kf9VDBsY2/xEo+7VK7I4RuMnz3zm7I1GiBr3dE3CZyz/GKhIHUsZNDC/ekcgTcOwCQKs2foivwo6EQastWTCwDVr+vUqLY2ssjc+ZixAm00mgfpt2RboKsYspHLL9g7e5oasRSEVXFa33bwDiG2NQ0hw9sGt9DU4M1idAPRCMl71VVJHBPAd/FKws0vmdUKG5V64bDPVECAwNo7qQhZVF6KWpm2/9vOU5JsQolMK2gISbyGOQicNrhVVIGbwM4rOyLOXglwMvz8axRhKQ3ogQON0eIwSh/sHVwY3HtmHpzuFkR3vwdmkqEa9ozXHXm5UFfThvP9tdA22Yn8xWBlV7g==
signature_date : 2020-07-04T01:18:38.723774
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,signer,signer_fingerprint,signature_date,signed_attributes
Fichier setup.py :
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('Disable OneDrive')
killalltasks("OneDrive.exe")
registry_set(HKEY_LOCAL_MACHINE,'SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\OneDrive',"DisableFileSyncNGSC",1,REG_DWORD)
def session_setup():
registry_delete(HKEY_CURRENT_USER,r'Software\Microsoft\Windows\CurrentVersion\Run','OneDriveSetup')
registry_delete(HKEY_CURRENT_USER,r'Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run','OneDriveSetup')
killalltasks("OneDrive.exe")
remove_file(makepath(user_appdata,"Microsoft","Windows","Start Menu","Programs","OneDrive.lnk"))
remove_tree(makepath(user_local_appdata,"Microsoft","OneDrive"))
error("ALWAYS LAUNCHED")
def audit():
install()
return 'OK'