Multiple Installs - How to upgrade
Posted: Tue Apr 22, 2008 11:31 am
I am trying to convert some Wise install scripts to InstallAware. With our original installer we were able to install multiple copies of the software in multiple locations. For example, we installed to:
c:\\firstCopy
c:\\secondCopy
When a new version of our software came out you would simply install it on top of each copy you had installed. When you did, it saw the uninstall log file that Wise put in the directory and would uninstall the previous version and install the new version.
I am having a very hard time figuring out how to replicate this behavior in InstallAware (or any MSI tool). I used the Transform code from the samples so I can install to c:\\firstCopy and then the second time, install to c:\\secondCopy.
The problem is when we release a new version and I want to upgrade both of these. If I run the new version's installer it will upgrade the first installation I made (great!). But if I run it again it asks me if I want a new instance. If I say yes and pick the location of the second installation, it does not uninstall it first, it just copies over it and I end up with an extra entry in the "Add/Remove Programs" application.
Is there anyway using MSI and InstallAware to accomplish this? I really need to allow people to have multiple copies installed and be able to upgrade each of them individually.
c:\\firstCopy
c:\\secondCopy
When a new version of our software came out you would simply install it on top of each copy you had installed. When you did, it saw the uninstall log file that Wise put in the directory and would uninstall the previous version and install the new version.
I am having a very hard time figuring out how to replicate this behavior in InstallAware (or any MSI tool). I used the Transform code from the samples so I can install to c:\\firstCopy and then the second time, install to c:\\secondCopy.
The problem is when we release a new version and I want to upgrade both of these. If I run the new version's installer it will upgrade the first installation I made (great!). But if I run it again it asks me if I want a new instance. If I say yes and pick the location of the second installation, it does not uninstall it first, it just copies over it and I end up with an extra entry in the "Add/Remove Programs" application.
Is there anyway using MSI and InstallAware to accomplish this? I really need to allow people to have multiple copies installed and be able to upgrade each of them individually.