Archive: deleting installer after installation


deleting installer after installation
what would be the best way to go about deleting the installation executable after it finishes, and perhaps the directory it is in as well?

I have a special case where the clients will be auto-updating with this installer which needs to move the program to a different location and essentially leave nothing of the old program/directory behind. (the program name has changed)

thanks for the help. I'll see what I can dig up too.

"life is like some water going through stuff. don't be egotistical"


You may try this:


Function .onInstSuccess
Delete $EXEDIR\theinstaller.exe
FunctionEnd


hope this help

with that approach I need to set the /REBOOTOK flag, which should work fine. it'll just get to it the next time the computer starts up.


You can make your mover an uninstaller which allows you to delete itself. Or, you can make a warpper which will just extract your real mover to the temporary directory, execute it and delete it with /REBOOTOK, which is exactly what the uninstaller does.