Archive: Delete $INSTDIR


Delete $INSTDIR
Didn't find how to resolve this using search.

So I have the $INSTDIR C:\Program Files\Company\App.
The uninst.exe is in the \App directory.

When running uninstall, everything seems to work.
I use RMDir /r "$INSTDIR"

But then I see that the directory C:\Program Files\Company wasn't deleted.

What's the problem?


This might be a bug as it didn't happen in 2.05 apparently.
http://forums.winamp.com/showthread....2Fr+%24INSTDIR

Not sure if anyone has posted a bug report on the bug tracker either (http://www.sf.net/projects/nsis)

-Stu


Thank you :)
I've found the solution in that topic.

Still it might be a bug. I'm using 2.07 too.


Why would Company be deleted if you deleted $INSTDIR which is Company\App? This is not a bug. Use GetParent.


Ohh I see. I didn't realise what he meant.
I wrote a script to do this a long time ago:
http://nsis.sourceforge.net/wiki/Uni...your_installer

-Stu