Fix a typo in uninstall

master
Daniel Berteaud 6 years ago
parent b582899829
commit 84c7503d2d
  1. 2
      WAPT/control
  2. 4
      setup.py

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

@ -50,12 +50,14 @@ def install():
print('Install custom logo') print('Install custom logo')
filecopyto('waptexit-logo.png',makepath(programfiles32,'wapt','templates')) filecopyto('waptexit-logo.png',makepath(programfiles32,'wapt','templates'))
def uninstall(): def uninstall():
print('Re enabling services') print('Re enabling services')
for service in disabled_services: for service in disabled_services:
print(' Enabling %s' % service) print(' Enabling %s' % service)
run(r'sc config %s start= auto' % service, accept_returncodes=[0,1060]) run(r'sc config %s start= auto' % service, accept_returncodes=[0,1060])
prin('Removing DeliveryOptimization settings') print('Removing DeliveryOptimization settings')
with reg_openkey_noredir(HKEY_LOCAL_MACHINE, r'SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization', sam=KEY_WRITE) as reg_key: with reg_openkey_noredir(HKEY_LOCAL_MACHINE, r'SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization', sam=KEY_WRITE) as reg_key:
reg_delvalue(reg_key, 'DODownloadMode') reg_delvalue(reg_key, 'DODownloadMode')

Loading…
Cancel
Save