Registry Keys writing even when conditional Statements are false

Got a problem you cannot solve? Try here.
aaronc
Posts: 2
Joined: Thu Oct 04, 2018 10:19 am

Registry Keys writing even when conditional Statements are false

Postby aaronc » 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?
Aaron Collins
Product Development and Support
Blue Marble Geographics

aaronc
Posts: 2
Joined: Thu Oct 04, 2018 10:19 am

Re: Registry Keys writing even when conditional Statements are false

Postby aaronc » Thu May 23, 2019 2:52 pm

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.
Aaron Collins
Product Development and Support
Blue Marble Geographics


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 40 guests