Upgrade Installs
InstallAware has a facility to seamlessly upgrade your older product versions to newer ones. If you used the type, wizards, or most of the other templates to create your setup project, this behavior is already implemented for you. In general, the method used for old version detection and upgrades is as follows:
- Both the old product to be upgraded and the new product which is the upgrade should have the same product code. However they should have different revision codes. Read more about these codes.
- Provided the above condition is met, the NEEDSUPGRADE pre-defined script variable will be automatically set to if a previous version of the product is found, and if not.
- Check this variable and use the (Un)Install MSI Setup command to automatically remove previous versions of your product, before allowing the main setup to begin.
Notes
- You may use the (Un)Install MSI Setup command with both InstallAware and non-InstallAware setups.
- If your InstallAware setup has custom uninstallation logic, try uninstalling it using the Run Program command and an uninstallation command line, assuring that your custom logic executes.