PDA

View Full Version : Self-Deleteing installer



Silverhammer
07-21-2005, 12:38 PM
Is there a way to have my installer (setup.exe) delete itself when it is finished?

RChapel
07-22-2005, 02:18 AM
Hi,

I don't know if there is an option in InstallShield for self-deleting, but you can ship and run a (small) external executable for instance, which will suppress the setup.exe (when it has finished the installation), and then delete itself.

An executable can delete itself by several ways, the simplest is to call the command interpreter (command.com, cmd.exe), tell it to delete our executable ("del my-exe.exe"), and exit immediately.

Hope this helps,
Regards.