Files
wapt-packages/kg-disable-access-phonecallhistory-wapt/setup.py
T
Kevin Guerineau e756abbf9d Add package
2019-06-15 23:01:26 +02:00

21 lines
812 B
Python

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