View Full Version : uninstall old before installing new

07-08-2005, 08:55 AM
Hi guys.
I'm pretty sure that my question is kind of frequently questions in this community but I can't find exactly what I need.
I'm using "InstallShield 11", my project is "Basic MSI Project". What I need is when user installing application, installer should completely uninstall old version (based on version number) from target machine and install new one. I know that exists several ways to do this (e.g. creating custom actions and use some predefined functions like uninstallApplication(), using appropriate switches to "msiexec", etc.) can you give me exact example? And also where in "sequences" should be placed such custom actions?

BTW: I tried to use Update feature and I noted that this feature doesn't work properly in my case. For example, during installation I'm updating settings.xml file (I use "XML File Changes" view) and when I use update feature it corrupts my settings.xml. So I don't want to use InstallShield's because of this bug and because of less control.

Thank you in advance