Registry Keys writing even when conditional Statements are false
Posted: Thu Oct 04, 2018 3:25 pm
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?
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?