My requirements are as follows:
If an application with version e.g. 12.0 is installed at
C:\Folder1
and a setup with version 13.0 is to be installed in the folderC:\Folder1
then the setup of version 13.0 should uninstall 12.0 version silently and install the latest version 13.0If an application with version e.g. 12.0 is installed at
C:\Folder1
and a setup with version 13.0 is to be installed in the folderC:\Folder200
then the setup of version 13.0 should install the latest version and also retain the version 12.0
Things I have tried :
If I use the upgrade code method to uninstall the previous version then the uninstall of previous versions will happen even if the previous version is installed anywhere on the system.
Using custom action - create a vbscript to read the installed products using WindowsInstaller.Products data and using the Product code created a command to uninstall the application using "msiexec.exe /x ProductCode"
- This custom action when added in the "Before File Transfer" section in install shield project, gives a pop-up that "The application is installing the version and to wait till it has completed the process".
- The "Wait for Action" property for the custom action is set to Yes.
- I tried setting it to "No" as well still same pop-up appears.
- If I add the custom action in the section of "After setup complete Success Dialog" in install shield project, then both versions are installed and after the vbscript executes, it does uninstall the previous version. The problem with this approach is, when I double click on the desktop icon of the application; it starts installing and displays pop-up of the progress of installation. This would be confusing for the customer. So this approach is not suitable.
We have not added any data in registry so cannot use the registry method to uninstall previous versions.
This is a very basic requirement for any software, but I am not able to make out how to achieve this. Please let me know if anybody has some pointers.
I have Installshield limited edition 2015 and Visual Studio 2015 Professional.