Hi,
I am trying to have some SQL scripts that run when installing the product for the first time (e.g. to install version 2.0), and other SQL scripts that run if a previous version is already installed, that will upgrade the database (e.g. from 1.8 to 2.0).
However I cannot seem to stop the install scripts from running when upgrading.
I have tried every combo I can think of of using !Database = 2, !Database = 3, Not (!Database = 3), Not Installed, in the run condition for each script, but they always seem to run.
Important Node: The way I am testing this is with 2 separate .aip projects, both identical (copied from the same original) except:
v1.8 points to v1.8 code and database creation/population scripts
v2.0 points to v2.0 code and database creation/production scripts, and has upgrade scripts to upgrade 1.8 to 2.0
The Product Version (on the Product Details page) is different
The idea is to test the upgrade by installing the product from the installer created by the v1.8 aip, then running the installer created by the v2.0 .aip and hopefully it will just run the upgrade scripts (and upgrade the code). Should this approach work? And if not how would you suggest working on and testing the upgrade?
Thanks
FOLLOW US
Get the latest news in Application Packaging