Page 1 of 1

Registry Keys writing even when conditional Statements are false

Posted: Thu Oct 04, 2018 3:25 pm
by aaronc
Hello,

I'm running InstallAware X4 and I'm having trouble with writing to the registry conditionally. It seems that whether or not the conditional gets run, the write registry command inside it runs.

I'm trying to write something to the registry when a checkbox is checked in a dialog. I have tested the output from the dialog and it is setting the correct values into the correct variables from the checkboxes. I have also tested in debug build and it is definitely skipping the conditional but still doing the write. When I comment the "Write Registry" command the registry key is not written so I know it is that command that is creating the value in the registry.

Is this a bug? Is there another way to conditionally write to the registry?

Re: Registry Keys writing even when conditional Statements are false

Posted: Thu May 23, 2019 2:52 pm
by aaronc
Hello, I finally figured it out.

When I had the MSIcode Statement Identifiers setting set to "Use dynamic identifiers" it would ignore the conditionals for my write commands. Once this was switched to "Generate stable identifiers" or "Blend" the issue was resolved.