I have an application which I am writing a major upgrade for.
The only thing that is persistent is an UpgradeCode.
What I want is to use a location of a previously installed version as a default path for installation.
My naive solution is to run a CustomAction which modifies the INSTALLDIR with a variable APP_LOCATION obtained by AppSearch table.
- Is there a conventional way to achive that via means on MSI or InstallShield?
- Can I use a condition in an MSI table to use "APP_LOCATION" from AppSearch table if it contains value? For example:
INSTALLDIR = APP_LOCATION ? APP_LOCATION : MY_DEFAULT_INSTALL_DIR(syntax is to emphasize the logic, idk if is valid)