PDA

View Full Version : Using If statements to edit registry



steve@trimpos.net
01-17-2019, 12:03 PM
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, 09: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, 02: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, 06:54 AM
Perfect! Thanks for the update!

Friedrich