SelfDel plug-in

From NSIS Wiki

Author: Takhir (talk, contrib)


Plug-in for setup in place deletion without exe copy or reboot.

Links

Download:
SelfDel.zip (25 KB)

Description

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

Syntax

"del" DLL function

SelfDel::del [/RMDIR]
Creates remote thread in the hidden Windows Explorer process, it waits parent process to exit and deletes it's file.
RMDIR
if exe' directory is empty after file deletion, removes directory as well with this option.

Example

Setup deletion:

Function .onInstSuccess
 
  SelfDel::del

FunctionEnd
Personal tools
donate
ads