Hello.
I have a problem with compare version of the already installed product on the SQL script page when I try update it.
When I update product I want to run SQL update scripts. For example, I have 5 versions of the product and each installer contains update sql scripts with conditions:
1) 1.1.1
Create DB: NOT OLDPRODUCTS
2) 1.2.1
Create DB: NOT OLDPRODUCTS
Update_1.1.0_to_1.2.1: OLD_VERSION < "1.2.1"
3) 1.3.1
Create DB: NOT OLDPRODUCTS
Update_1.1.1_to_1.2.1: OLD_VERSION < "1.2.1"
Update_1.2.1_to_1.3.1: OLD_VERSION < "1.3.1"
4) 1.4.1
Create DB: NOT OLDPRODUCTS
Update_1.1.1_to_1.2.1: OLD_VERSION < "1.2.1"
Update_1.2.1_to_1.3.1: OLD_VERSION < "1.3.1"
Update_1.3.1_to_1.4.1: OLD_VERSION < "1.4.1"
5) 1.5.1
Create DB: NOT OLDPRODUCTS
Update_1.1.1_to_1.2.1: OLD_VERSION < "1.2.1"
Update_1.2.1_to_1.3.1: OLD_VERSION < "1.3.1"
Update_1.3.1_to_1.4.1: OLD_VERSION < "1.4.1"
Update_1.4.1_to_1.5.1: OLD_VERSION < "1.5.1"
Last version is 1.5.1. I use vbscript to fill property OLD_VERSION with appropriate value from registry path "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\[OLDPRODUCTS]\DisplayVersion".
So, one of the customers has installed version 1.3.1. And when I try update his 1.3.1 version with last 1.5.1 ALL update scripts are executed, but Update_1.1.1_to_1.2.1 and Update_1.2.1_to_1.3.1 shouldn't.
OLD_VERSION in this case has value "1.3.1".
I tried use condition OLD_VERSION < "1.2.1" on dialog in Controls Conditions and it works properly.
Do you have any idea what is wrong?
FOLLOW US
Get the latest news in Application Packaging