Archive: Calling Uninstallation while installing


Calling Uninstallation while installing
Hi,

I wanna uninstall the application at the time of installation if it's already been installed. Since Uninstall section or functions cannot be called within other functions I need to know the correct way of doing this. There were few related topics in this forum. But I couldn't apply them.


I tried with "Exec <Path\Uninstaller.exe" in pre_instfiles function. Then it worked. Is this method correct?


This method is just fine. You can also just create a normal function in your NEWER installer, that deletes all the files and regkeys etc. If your older uninstaller is trustworthy, you can simply use that. But you'll probably want to use ExecWait, not Exec.


Thanx...