Skip to content
⌘ NSIS Forum Archive

a problem with UpgradeDLL (macro)

6 posts

rawy#

a problem with UpgradeDLL (macro)

Hello

I use UpgradeDLL (Macro).

When this macro is unregistered the old DLL and copy and registered the new DLL, I have a problem that my install program is not correctly finished and still in memory (see at windows task manager)

Someone had the same problem?

thank you
onad#
Please give an example script to test.

The information you provide is a little to sparse for forum member to be of help.
rawy#
This is my script to call the UpgrageDLL:


;-- 1. : Get the path of DLL used CLSID (if DLL is already registered)
ReadRegStr $0 HKCR "${AFS_CLSID}\InprocServer32" ""
;--2. if DLL is not already on PC
StrCmp $0 "" DLL_Install DLL_UpDate
DLL_Install:

;-- register DLL (This steep is always OK)
!insertmacro UpgradeDLL "${Src_Dir}\MediaAFS.dll" "$INSTDIR\MediaAFS.dll" "$INSTDIR"
GoTo End_Reg_DLL
DLL_UpDate:


;-- This call of macro make problem
!insertmacro UpgradeDLL "${Rep_Src}\MediaAFS.dll" "$0" "$INSTDIR"
End_Reg_DLL:


Thank you
rawy#
Sorry I can not send the 2 DLL files because the zip file is > 102400 bytes. I send her the script only.