Page 1 of 1

[SOLVED] Modification of MULTI_SZ value in the registry.

Published: June 8, 2018 - 8:21 AM
by Imp83
Good morning,

I'm having trouble creating a pGina package. The installation goes smoothly, but the configuration involves modifying the registry, and when I try to modify a MULTI_SZ variable, I keep getting the error ValueError: Could not convert the data to the specified type which goes back up.

Here is the line of my script that is causing the problem:
registry_set(HKEY_LOCAL_MACHINE,r'SOFTWARE\pGina3',r'IPluginAuthentification_Order',r'0f52390b-c781-43ae-bd62-553c77fa4cf7 12fa152d-a2e3-4c8d-9535-5dcd49dfcb6d',type=REG_MULTI_SZ)
I should point out that my server is running community version 1.5.23 on Debian.

Re: Modifying the MULTI_SZ value in the registry.

Published: June 8, 2018 - 8:52 AM
by htouvet
Try it with a list

Code: Select all

registry_set(HKEY_LOCAL_MACHINE,r'SOFTWARE\pGina3',r'IPluginAuthentification_Order',['0f52390b-c781-43ae-
bd62-553c77fa4cf712fa152d-a2e3-4c8d-9535-5dcd49dfcb6d'],type=REG_MULTI_SZ)

Re: Modifying the MULTI_SZ value in the registry.

Published: June 8, 2018 - 09:53
by Imp83
I tried it and everything works! Thank you so much!!