SelfDel plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
No edit summary
 
Line 8: Line 8:


== Description ==
== 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.<br>
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 ==
== Syntax ==

Revision as of 21:33, 17 July 2011

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