Archive: Deleting Uninstaller


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


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

Are you running the uninstaller in a normal way?


Oddly enough, it started working when I fixed the uninstaller icon...

Thanks though:D