Skip to content
⌘ NSIS Forum Archive

Odd Uninstaller

2 posts

Guest#

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 :|
pengyou#
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: