I repackaged a Java app to distribute at large scale. During the setup, I need to generate an arbitrary GUID and set this GUID inside a registry key property value :

The installer need to be executed in silent mode, because it's deployed through SCCM.
I tried to do this with an inline powershell script CA by using AI_SetMsiProperty like explain here but it didn't work.
How can I achieve this action ? As a warkaround I can define a public property at installation with msiexec but I really would like that this action reside inside the installer.
Thanks for your help.