Page 1 of 1

REG_BINARY

Published: May 23, 2018 - 9:30 PM
by Bertrand26
Hello,
I'm trying to create a REG_BINARY registry key in a package.
I've tried the following without success: registry_set(HKEY_LOCAL_MACHINE, r'SOFTWARE\', r'test', a1, REG_BINARY).
Does anyone have a solution?
Thanks in advance.

srvwapt 1.5.23 on Debian Stretch, console on Windows 7

Re: REG_BINARY

Published: May 28, 2018 - 01:05
by dcardon
Hello Bertrand,
Bertrand26 wrote: May 23, 2018 - 9:30 PM I'm trying to create a REG_BINARY registry key in a package.
I tried unsuccessfully: registry_set(HKEY_LOCAL_MACHINE, r'SOFTWARE\', r'test', a1, REG_BINARY)
Does anyone have a solution?
Thanks in advance.

srvwapt 1.5.23 on Debian Stretch, console on Windows 7
I've had to do this before, and it wasn't very straightforward. I don't think the setuphelpers API currently allows it, but you can directly call the winreg library in your setup.py file.

You just need to add the following line to the beginning of the setup.py file

Code: Select all

import winreg
Sincerely,

Denis