From NSIS Wiki
|Author: Takhir (talk, contrib)|
Plug-in for setup in place deletion without exe copy or reboot.
SelfDel.zip (27 KB)
Plug-in launches hidden Window Explorer, it waits installer (uninstaller) to finish and deletes exe. Optionaly removes exe' directory. After this Explorer exits as well.
Now works on x64 (Vista/7) - Afrow UK; 17th July 2011
"del" DLL function
- Creates remote thread in the hidden Windows Explorer process, it waits parent process to exit and deletes it's file.
- if exe' directory is empty after file deletion, removes directory as well with this option.
Function .onInstSuccess SelfDel::del FunctionEnd