How do I get original install path when upgrading?

Got a problem you cannot solve? Try here.
Post Reply
jsmith
Posts: 178
Joined: Tue Nov 04, 2008 10:47 am

How do I get original install path when upgrading?

Post by jsmith »

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!
using InstallAware 9 R2 (Build Moya.sp3.070910)
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

There are various ways to do this, please see my post:
www.installaware.com/forum/viewtopic.php?t=4829
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply