Archive: How to RmDir $INSTDIR if install fails


How to RmDir $INSTDIR if install fails
Hi,

I'm having a problem with removing the install directory once created during an install. On uninstall, it works fine, but that's in a different execution context from the install. In the install I can back out everything I do, but I cannot remove the install directory!:(

What am I doing wrong? :confused:

TIA,
Dave S.


The folder might be 'in use' (by installer process), so set another 'current' folder first


SetOutPath "$EXEDIR"
RMDir "$INSTDIR"

But I also saw bug reports with this problem, so you can try to use some other NSIS version (latest or <2.10).