Updated sysprep checking from info to debug

This commit is contained in:
Adolfo Gómez 2021-06-16 18:31:06 +02:00
parent 7b0ad08685
commit df9cb4eb6a

View File

@ -205,6 +205,7 @@ class UDSActorSvc(win32serviceutil.ServiceFramework, CommonService):
try:
key = wreg.OpenKey(wreg.HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\State')
data, _ = wreg.QueryValueEx(key, 'ImageState')
logger.debug('State: %s', data)
return data != 'IMAGE_STATE_COMPLETE' # If ImageState is different of ImageStateComplete, there is something running on installation
except Exception: # If not found, means that no installation is running
return False