Browse Source

Include cortana removal

master
Daniel Berteaud 1 year ago
parent
commit
add973d9cd
2 changed files with 7 additions and 3 deletions
  1. +1
    -1
      WAPT/control
  2. +6
    -2
      setup.py

+ 1
- 1
WAPT/control View File

@@ -1,5 +1,5 @@
package : fws-system-settings
version : 3
version : 4
architecture : all
section : base
priority : optional


+ 6
- 2
setup.py View File

@@ -40,8 +40,12 @@ def install():
run(r'net user rv /add', accept_returncodes=[0,2])
run(r'net localgroup Administrateurs rv /add', accept_returncodes=[0,2])

print('Disabling P2P updates delivery')
registry_setstring(HKEY_LOCAL_MACHINE, r'SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization', 'DODownloadMode', 0, REG_DWORD)
if windows_version() > Version('10'):
print('Disabling P2P updates delivery')
registry_setstring(HKEY_LOCAL_MACHINE, r'SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization', 'DODownloadMode', 0, REG_DWORD)
print('Disabling Cortana')
registry_set(HKEY_LOCAL_MACHINE, r'SOFTWARE\Policies\Microsoft\Windows\Windows Search', r'AllowCortana', 0, REG_DWORD)
remove_metroapp('Microsoft.Windows.Cortana')

def uninstall():
print('Re enabling services')


Loading…
Cancel
Save