Tranquil IT recrute Tranquil IT recrute

tis-disable-onedrive

Version : 1.0.0-8

Download
  • package : tis-disable-onedrive
  • editor :
  • version : 1.0.0-8
  • licence :
  • architecture : all
  • locale :
  • description : Removes Microsoft OneDrive
  • description_fr : Supprime Microsoft OneDrive
  • min_os_version : 10
  • max_os_version :
  • min_wapt_version : 1.5.1.20
  • installed_size :
  • impacted_process :
  • signature_date : 20180316-171657
  • maintainer : TIS
  • Conflicts :

setup.py

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    print('installing %s' % control.asrequirement())
    killalltasks("OneDrive.exe")
    killalltasks("explorer.exe")

    if iswin64():
        onedrivesetup = makepath('C:','Windows','SysWOW64','OneDriveSetup.exe')
    else:
        onedrivesetup = makepath(system32,'OneDriveSetup.exe')

    print('Uninstall OneDrive')
    run_notfatal('"%s" /uninstall' % onedrivesetup,timeout=60)

##    print('Remove OneDrive user folders')
##    for users in local_users_profiles():
##        user_od = makepath(users,'OneDrive')
##        appdata_od = makepath(users,'AppData','Local','OneDrive')
##        if isdir(user_od): remove_tree(user_od)
##        if isdir(appdata_od): remove_tree(makepath(users,'AppData','Local','OneDrive'))

    print('Remove OneDrive system folders')
    if isdir(makepath('C:','ProgramData','OneDrive')): remove_tree(makepath('C:','ProgramData','OneDrive'))
    if isdir(r'C:\OneDriveTemp'): remove_tree(r'C:\OneDriveTemp')

    print('Remove OneDrive registry keys')
    if iswin64():
        registry_set(HKEY_CLASSES_ROOT,'Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}',"System.IsPinnedToNameSpaceTree",0,REG_DWORD)
    else:
        registry_set(HKEY_CLASSES_ROOT,'CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}',"System.IsPinnedToNameSpaceTree",0,REG_DWORD)

    print('Disable OneDrive')
    registry_set(HKEY_LOCAL_MACHINE,'SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\OneDrive',"DisableFileSyncNGSC",1,REG_DWORD)



def session_setup():
    print('Session setup for %s' % control.asrequirement())
    if iswin64():
        registry_set(HKEY_CURRENT_USER,r"Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}","System.IsPinnedToNameSpaceTree",0,REG_DWORD)
    else:
        registry_set(HKEY_CURRENT_USER,r"CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}","System.IsPinnedToNameSpaceTree",0,REG_DWORD)
    remove_file(makepath(user_appdata,"Microsoft","Windows","Start Menu","Programs","OneDrive.lnk"))
    remove_tree(makepath(user_local_appdata,"Microsoft","OneDrive"))



			

Changelog

"""{% trans %}No changelog.{% endtrans %}"""
			

manifest.sha256

[["setup.py", "2bf8b4556762002630aeab4fa0d489c84580b62d6437f65e27a0baae41ce3cc6"], ["WAPT/certificate.crt", "13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779"], ["WAPT/icon.png", "7985d44f9fa263dbebd44f6ba8b1579f6a587c9feca55a4d9084e7bb88a3172a"], ["WAPT/control", "3f3738f49ac28853e471327e8ef374a5da8571bec30e528ad22e3839208a4860"], ["WAPT/wapt.psproj", "b6db619daee03b47d37e5766a6a743091bfd8efc2ddada421708ae7d2d044ac0"]]