hannes
5th December 2008 08:38 UTC
Automatically delete installer after install
Hi all,
Is there any way to make the installer delete itself like the uninstaller does?
My program will download the installer to the temp directory, and launch it, and I would like the installer to delete after install.
Thanks!
{_trueparuex^}
5th December 2008 12:34 UTC
You can use Delete the installer with /REBOOTOK switch and the installer is removed on the next reboot.
Delete /REBOOTOK "$EXEPATH"
The uninstaller actually does this too. Uninstaller first copies itself in the temp directory and then runs the copy so the original file can be deleted and the copy is deleted when the system reboots.
There's also
SelfDel plug-in that can delete the installer without reboot, but AFAIK it doesn't work on Vista.
PaR
Afrow UK
5th December 2008 12:56 UTC
You could also use the selfdel plug-in which deletes the installer instantly rather than on reboot.
Stu
Ivan Andreevich
10th December 2008 18:30 UTC
Originally posted by Afrow UK
You could also use the selfdel plug-in which deletes the installer instantly rather than on reboot.
Stu
Word, I am using it exactly for that :up: