Old 6th November 2008, 20:54   #1
drz_2
Junior Member
 
Join Date: Nov 2008
Posts: 1
delete dll

I make a call from external dll

SetPluginUnload alwaysoff
SetOutPath "$TmpDir"
File "${NSISDIR}\Proj1\MyDll.dll"
System::Call MyDll::MyFunc(t) t(r3).r5'
SetPluginUnload manual
System::Free 0
Delete "$TmpDir\MyDll.dll"

but mydll.dll is not deleted. I try to delete it manually, but it can't be deleted until installation application is not closed.
How can I delete this dll before I close installation application?
drz_2 is offline   Reply With Quote
Old 6th November 2008, 21:23   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
don't use SetPluginUnload alwaysoff, or add a call to your plugin that does nothing like the call to system::free 0

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump