PDA

View Full Version : Deleting Uninstaller


Trestkon
8th November 2003, 21:18
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
9th November 2003, 10:08
The uninstaller copies itself to a temporary folder, so this should work just fine.

Are you running the uninstaller in a normal way?

Trestkon
9th November 2003, 16:32
Oddly enough, it started working when I fixed the uninstaller icon...

Thanks though:D