PDA

View Full Version : Using If statements to edit registry



steve@trimpos.net
01-17-2019, 11:03 AM
I am trying to add a registry entry only if the installed version is less than a certain version. For some reason no matter what I do, the registry entry is added. The same if statement works great with the install File(s) option.I have attached a snippit of the code in question.
4849

linder
01-18-2019, 08:22 AM
Steve,

please add a "Display Message Box" test function after the IF Statement and before the first "Registry Key" item. Display the %INSTALLED_VERSION% runtime variable in the Display Message Box command. Do you see the Message Box? What is displayed?

Friedrich

steve@trimpos.net
01-24-2019, 01:15 PM
Thanks for the help. I actually deleted the entire section and put it in again and it works now.

linder
01-25-2019, 05:54 AM
Perfect! Thanks for the update!

Friedrich