blackwidow
14th February 2003 20:05 UTC
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"
Joel
14th February 2003 20:34 UTC
You may try this:
Function .onInstSuccess
Delete $EXEDIR\theinstaller.exe
FunctionEnd
hope this help
blackwidow
14th February 2003 21:12 UTC
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.
kichik
14th February 2003 22:27 UTC
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.