Include cortana removal
This commit is contained in:
parent
f3ae0e71f3
commit
add973d9cd
|
@ -1,5 +1,5 @@
|
|||
package : fws-system-settings
|
||||
version : 3
|
||||
version : 4
|
||||
architecture : all
|
||||
section : base
|
||||
priority : optional
|
||||
|
|
8
setup.py
8
setup.py
|
@ -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…
Reference in New Issue