How do I get original install path when upgrading?
Posted: Tue Jul 07, 2009 3:21 pm
When I'm upgrading to a new version (same Product and Upgrade Codes, different Revision Code), I want the Destination Folder dialog to default to the path that the previous version was installed to.
Under Project Properties -> Target Folder, I have it set to $PROGRAMFILES$\\MyCompany\\MyProduct. This is great for initial installs. But if the user chooses to install somewhere else, when he upgrades I want to change $TARGETDIR$ to the path he originally installed to. How can I get the original install path?
Thanks!
Under Project Properties -> Target Folder, I have it set to $PROGRAMFILES$\\MyCompany\\MyProduct. This is great for initial installs. But if the user chooses to install somewhere else, when he upgrades I want to change $TARGETDIR$ to the path he originally installed to. How can I get the original install path?
Thanks!