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