This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- How to create installer that can do upgrades
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 21, 2010
06:17 PM
How to create installer that can do upgrades
I am having issues creating a Windows 2003/2008 R2 installer which can detect older versions of a product (based on registry key version information) and overlay that installation with that of the newer version. The manner in which I am attempting to do this is by running an external command to launch the uninstaller of the current installation (if the current installation is determined to be older). Then after that has completed, the installation of the newer version will take place. What happens on occasion however, is that this installation will take place before the uninstaller has completely finished it's task. Therefore, the uninstaller will delete files that are in the process of being laid-down by the installer. This results usually in a "jre" directory which is missing files or is completely absent alltogether. Anyone have an ideas as to how to go about this? Thanks.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 22, 2010
08:27 AM
The jre installation is made by InstallAnywhere between pre-install & install phase, this is not something (AFAIK) you can handle by your own.
So if at the beginning of the install phase you run the uninstaller, then the jre gets deleted.
suggestion will be to not delete the jre on uninstallation:
- checkbox in "Project/java" => Do not remove bundled VM when uninstalling
Then add an action (uninstall phase) to delete the jre on uninstall using a variable rule (e.g. DELETE_JRE=true by default)
When you call the uninstaller from the installer (upgrade), add the "-DDELETE_JRE=false" to the uninstaller command.
So the jre will be updated on upgrade and deleted on uninstallation.
So if at the beginning of the install phase you run the uninstaller, then the jre gets deleted.
suggestion will be to not delete the jre on uninstallation:
- checkbox in "Project/java" => Do not remove bundled VM when uninstalling
Then add an action (uninstall phase) to delete the jre on uninstall using a variable rule (e.g. DELETE_JRE=true by default)
When you call the uninstaller from the installer (upgrade), add the "-DDELETE_JRE=false" to the uninstaller command.
So the jre will be updated on upgrade and deleted on uninstallation.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 22, 2010
09:31 AM
Are you using the ExecuteUninstaller Action?
You could do that in the Pre-Install phase, run it in silent mode, and put the "Show Intermediate Dialog" option on. Then it wouldn't even proceed to the Install phase until it was completed.
You could do that in the Pre-Install phase, run it in silent mode, and put the "Show Intermediate Dialog" option on. Then it wouldn't even proceed to the Install phase until it was completed.