Note: From release 3.4.2468 onwards, the action below is included in all new Tarma native projects. You only need to perform this procedure to update projects that were created with earlier versions of Tarma ExpertInstall.
During product upgrades, it may be useful to preset the default installation path to the same path as the previous version uses. You can achive this as follows for Tarma native installers:
All this assumes that your main installation folder has the INSTALLDIR alias; it does so by default.
Explanation: InstallLocation is a registry lookup of the previous version's install path; the Condition makes sure that the INSTALLDIR path is only updated if there is indeed a previous version.
The screen shot below shows what the result should look like:
