Include cortana removal

master
Daniel Berteaud 6 years ago
parent f3ae0e71f3
commit add973d9cd
  1. 2
      WAPT/control
  2. 4
      setup.py

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

@ -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])
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