uninstaller doesn't self-delete
right, I've been doing the basic tutorials, and apart from the very first time the uninstaller won't self delete. I've tried checking my code and also pasting the exact code but that didn't help.
for instance this code:
# define installer nameit does remove the test.txt file afterwards, but uninstall.exe remains.
outFile "installer.exe"
# set desktop as install directory
installDir $DESKTOP
# default section start
section
# define output path
setOutPath $INSTDIR
# specify file to go in output path
file test.txt
# define uninstaller name
writeUninstaller $INSTDIR\uninstaller.exe
# default section end
sectionEnd
# create a section to define what the uninstaller does.
# the section will always be named "Uninstall"
section "Uninstall"
# Always delete uninstaller first
delete $INSTDIR\uninstaller.exe
# now delete installed file
delete $INSTDIR\test.txt
sectionEnd
also, is notepad the only way to edit these scripts or is there a better editor that can highlight the keywords, etc?