Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 16th November 2005, 10:36   #1
rawy
Junior Member
 
Join Date: Sep 2005
Posts: 8
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
rawy is offline   Reply With Quote
Old 16th November 2005, 14:06   #2
onad
Senior Member
 
onad's Avatar
 
Join Date: Dec 2004
Location: Turkey
Posts: 447
Please give an example script to test.

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

"Just do it"
onad is offline   Reply With Quote
Old 16th November 2005, 15:43   #3
rawy
Junior Member
 
Join Date: Sep 2005
Posts: 8
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 is offline   Reply With Quote
Old 17th November 2005, 10:11   #4
rawy
Junior Member
 
Join Date: Sep 2005
Posts: 8
I add here a scrip test
Thanks
rawy is offline   Reply With Quote
Old 17th November 2005, 12:55   #5
rawy
Junior Member
 
Join Date: Sep 2005
Posts: 8
Sorry I can not send the 2 DLL files because the zip file is > 102400 bytes. I send her the script only.
rawy is offline   Reply With Quote
Old 20th November 2005, 18:11   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,338
Does regsvr32.exe keep runnign as well, when used to registry that DLL?

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp 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