Archive: a problem with UpgradeDLL (macro)


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


Please give an example script to test.

The information you provide is a little to sparse for forum member to be of help.


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


I add here a scrip test
Thanks


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


Does regsvr32.exe keep runnign as well, when used to registry that DLL?