Skip to content
⌘ NSIS Forum Archive

File not deleted

3 posts

velk#

File not deleted

Hi;

i have to call a function from a dll at install and then delete the dll to not include it in the retail version of my soft

but the dll dont want to be deleted and i cant understand why


 SetOutPath $INSTDIR
  
  ; Put file there
  File *.dll
  File *.exe
  File *.url
  File *.txt
  File "activemark\aminstall.dll"
  System::Call 'aminstall::ActiveMARKReadInstaller(t) i (r9) r8'
  
  Delete "$INSTDIR\aminstall.dll"
  Delete "aminstall.dll" 
kichik#
It's still in use. Use System's u option to unload the DLL after it's used. For example:
System::Call "aminstall::ActiveMARKReadInstaller(t r9) i .r8 ?u"