Files
wapt-packages/kg-disable-access-tasks-wapt/setup.py
T
Kevin Guerineau 260f83042c initial commit
2019-08-20 21:39:10 +02:00

21 lines
795 B
Python

# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('installing %s' % control.asrequirement())
registry_set(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userDataTasks','Value','Deny')
def uninstall():
print('uninstalling %s' % control.asrequirement())
registry_set(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userDataTasks','Value','Allow')
def audit():
print('Auditing %s' % control.asrequirement())
if registry_readstring(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userDataTasks','Value').lower() == 'deny':
return 'OK'
else:
return 'Error'