JUCE Uninstaller?


#1

Hey everyone! Does anyone have a solid technique for creating a stable uninstaller?

 

JUCE doesn't seem to like to delete directories sometimes (especially when they're containing the installer!)! 

My current method involves me copying the uninstaller to '%temp%', then running the uninstaller from there and closing the current one. It seems, however, that he process that started the %temp% one (being the uninstaller) still appears to lock the original uninstaller - as if Windows recognizes that it is a child process of the original file.

The way that would improve my system would be to run the file without it being linked to the original (therefore, unlocking the orignal so Windows will allow it to be deleted).

 

Any suggestions?