Skip to content
⌘ NSIS Forum Archive

Delete $INSTDIR

5 posts

Guest#

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?
Afrow UK#
This might be a bug as it didn't happen in 2.05 apparently.
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.


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

-Stu
Guest#
Thank you 🙂
I've found the solution in that topic.

Still it might be a bug. I'm using 2.07 too.
kichik#
Why would Company be deleted if you deleted $INSTDIR which is Company\App? This is not a bug. Use GetParent.
Afrow UK#
Ohh I see. I didn't realise what he meant.
I wrote a script to do this a long time ago:


-Stu