Skip to content
⌘ NSIS Forum Archive

Deleting Uninstaller

3 posts

Trestkon#

Deleting Uninstaller

I read in the help file that I should be able to delete the uninstall.exe file from within the uninstaller, but my code does not seem to delete it. Any help would be much appreciated🙂

I have pasted in the relevant parts of my script below:

Section "TNM Files" section_1

;Create uninstaller
SetOutPath "$INSTDIR"
WriteUninstaller "Uninstall_TNM.exe"

SectionEnd


Section "Uninstall"

;remove uninstaller
Delete "$INSTDIR\Uninstall_TNM.exe"

SectionEnd
Joost Verburg#
The uninstaller copies itself to a temporary folder, so this should work just fine.

Are you running the uninstaller in a normal way?