Commit 050dfede authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

windows: Add REG_EXPAND_SZ() registry helper func

Add this helper lambda function that can be used to update the value of
parent f5dd0e42
......@@ -35,6 +35,8 @@ WINDOWS_SETUP_STATES = (
REG_SZ = lambda k, v: {'key': k, 't': 1L,
'value': (v + '\x00').encode('utf-16le')}
REG_EXPAND_SZ = lambda k, v: {'key': k, 't': 2L,
'value': (v + '\x00').encode('utf-16le')}
REG_BINARY = lambda k, v: {'key': k, 't': 3L, 'value': v}
REG_DWORD = lambda k, v: {'key': k, 't': 4L, 'value': struct.pack('<I', v)}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment