Search code examples
windowsnsisuninstallation

Executing a program in a windows uninstaller


I am using NSIS to create a Windows installer. In my uninstaller I need to execute a different program just before I exit (no need to wait for that program to finish before exiting).

After running the uninstaller from Windows control panel I get the following problem: The list is not refreshed until I manually refresh it and even after that I can't continue to uninstall additional software because I get a pop up with the message: "Please wait until the current program is finished uninstalling or being changed".

I guess the problem is that Windows detects that new program I executed from the uninstaller and thinks the uninstallation process is still running.

Anybody knows how to overcome this ?

Thanks a lot !


Solution

  • Windows does this to deal with old broken uninstallers and it is by design. You could try to escape the job but I don't know if that code works on every version of Windows...