watzr
25th September 2009 08:37 UTC
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.
watzr
25th September 2009 08:50 UTC
I tried with "Exec <Path\Uninstaller.exe" in pre_instfiles function. Then it worked. Is this method correct?
MSG
25th September 2009 09:37 UTC
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.
watzr
25th September 2009 11:18 UTC
Thanx...