Archive: Odd Uninstaller


Odd Uninstaller
Hey, long story short, im creating a script to unistall a previous version of my file.

;--------------------------------
;Uninstaller Section

Section "Uninstall"

RMDir "$INSTDIR"

;ADD YOUR OWN FILES HERE...
Delete "$INSTDIR\gfx\"
Delete "$INSTDIR\media\"
Delete "$INSTDIR\models\"
Delete "$INSTDIR\resource\"
Delete "$INSTDIR\sound\"

for some reason though, it dosent uninstall, even if the uninst dir is correct :|


RMDir will only remove the directory if it is completely empty.

RMDir /r will remove the directory even if it is not empty.

See the NSIS Users Manual:
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.1.8