Archive: Automatically delete installer after install


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!


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

You could also use the selfdel plug-in which deletes the installer instantly rather than on reboot.

Stu


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: