Skip to content
⌘ NSIS Forum Archive

Delete the setup exe

5 posts

fabiochelly#

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
rainmanp7#
How exactly do you want to do this ?
yes it is possible 🙂
Because I think anything is possible 😎
kichik#
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:
fabiochelly#edited
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
Joost Verburg#
See the NSIS Update source code in CVS (Contrib\NSIS Update). It copies itself to a temporary location so it can update itself.