SelfDel plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
Line 10: Line 10:
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.
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'''
== Tested on ==
Windows XP 32-bit
Windows Vista 32-bit/64-bit
Windows 7 32-bit/64-bit
Windows 8 32-bit/64-bit


== Syntax ==
== Syntax ==

Revision as of 09:55, 28 June 2013

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.

Tested on

Windows XP 32-bit Windows Vista 32-bit/64-bit Windows 7 32-bit/64-bit Windows 8 32-bit/64-bit

Syntax

"del" DLL function

SelfDel::del [/RMDIR] [/REBOOT | /SHUTDOWN]
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.
/REBOOT (added by Afrow UK)
reboots the machine after installer deletion.
/SHUTDOWN (added by Afrow UK)
shuts the machine down after installer deletion.

Example

Setup deletion:

Function .onInstSuccess
 
  SelfDel::del

FunctionEnd