Include cortana removal

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

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

@ -40,8 +40,12 @@ def install():
run(r'net user rv /add', accept_returncodes=[0,2]) run(r'net user rv /add', accept_returncodes=[0,2])
run(r'net localgroup Administrateurs rv /add', accept_returncodes=[0,2]) run(r'net localgroup Administrateurs rv /add', accept_returncodes=[0,2])
print('Disabling P2P updates delivery') if windows_version() > Version('10'):
registry_setstring(HKEY_LOCAL_MACHINE, r'SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization', 'DODownloadMode', 0, REG_DWORD) 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(): def uninstall():
print('Re enabling services') print('Re enabling services')

Loading…
Cancel
Save