I have an installer, a compiled NSIS script and it first checks if another version of my application is running on the system. If another instance exists, then it first triggers the silent uninstallation and then proceeds with installation of the new instance.
I use ExecWait
to trigger the uninstaller in the silent mode but my main installer process does not wait and goes ahead with the installation process.
How do I force the main installer to wait for the silent uninstallation to complete first?