Execute Uninstaller and wait
Hello i am writing an installer that checks if the product i am installing is already in the system. I am checking that through the registry (although this is irrelevant to my question). When i find that the program is installed i prompt the user to either abort or automatically run the existing uninstaller. In the second scenario i would like my installer to wait for the uninstaller to finish (without errors) before continuing.
The problem is that for some reason the uninstaller that NSIS creates returns immediately after i run it so the command ExecWait does not "wait" for the uninstaller to finish.
Do you have any suggestion as to how i can correct this mistake?