im currently evaluating AI and am making good progress so far.
However one feature we need for our installer/upgrader to execute SQL scripts based on the already installed version.
We have one init script which is only to be executed for a new installation. That was easy enough to accomplish with the condition
Code: Select all
NOT OLDPRODUCTS
The first solution that came to mind is to setup a search that reads the current installed version from the registry. I set up my upgrades so the old version is only uninstalled after the installation of the new version. And in theory it works perfectly well with a condition like
Code: Select all
INSTALLED_VERSION < "2.4.4"
However we get problems when we go past single digits versions. This systems breaks once we reach version 2.4.10. The condition
Code: Select all
INSTALLED_VERSION < "2.4.10"
Is there a way to compare strings as version numbers in the conditioning?
If not I already came up with a workaround. However this workaround would require me to add a new search property for every version like so: And then use a condition like
Code: Select all
VERSION_2.4.2_INSTALLED = ""