Answer
An installation is not automatically able to retrieve the path of a previous installation.
You will need to store the path in a registry key in the previous installation, then during the upgrade retrieve that path using System Search to search the registry and then set the INSTALLDIR property to use the previous path.
The upgrade itself does this by default if the upgrade is set up correctly.