Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 24th January 2006, 15:16   #1
fabiochelly
Senior Member
 
fabiochelly's Avatar
 
Join Date: Nov 2003
Location: Vincennes, France
Posts: 122
Send a message via ICQ to fabiochelly
Upgrade a DLL

What options do I need to use to replace a registered DLL only if the one I want to install is newer?

When I use InstallLib with REBOOT_PROTECTED, it doesn't work at all. When the setup tries to replace the dll, the setup stops and I have to click on cancel.

Here is my code ($OUTDIR = $SYSDIR):
PHP Code:
!insertmacro InstallLib REGDLL $0 REBOOT_PROTECTED "${LOCAL_PATH}\DLL\${FileName}" "$OUTDIR\${FileName}" "$OUTDIR" 

Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
fabiochelly is offline   Reply With Quote
Old 24th January 2006, 17:41   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
If it's really protected, you can't replace it. There are some tricks available to unprotect files temporarily or permanently, but those shouldn't be used. If you really want to replace a protected file, you should use its official installer.

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