Archive: Delete the setup exe


Delete the setup exe
Is it possible to delete the setup exe at the end of the install without reboot?

Theorically, it should be possible using the same method as the one you use with uninstall.exe


How exactly do you want to do this ?
yes it is possible :)
Because I think anything is possible :cool:


The uninstaller doesn't exactly delete itself. It deletes a copy of iteslf. The uninstaller first copies itself into the temporary directory and executes its copy. The temporary copy can then delete the original copy.

You can try this:
http://www.catch22.org.uk/tuts/selfdel.asp


I use the method which uses a batch file.

Now is it possible to compeletely hide the DOS window?
Currently I just can minimize it by using a ShellExecute with the option SW_SHOWMINIMIZE


See the NSIS Update source code in CVS (Contrib\NSIS Update). It copies itself to a temporary location so it can update itself.