Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 5th May 2003, 21:25   #1
Snover
Junior Member
 
Join Date: Jul 2002
Posts: 30
Send a message via ICQ to Snover Send a message via AIM to Snover Send a message via Yahoo to Snover
Upgrade DLLs ONLY if the installed version is lower?

I'm not sure how to work this, since there is no inequality stuff in NSIS that I know of. I can GET the DLL version sure and I can check if they are EQUAL but as far as I know there's no way of doing this. So, anyone?
Snover is offline   Reply With Quote
Old 5th May 2003, 21:45   #2
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Use the UpgradeDLL macro. You can find this macro in the NSIS 2 documentation or in the archive: http://nsis.sourceforge.net/archive/....php?pageid=38

And about the inequality stuff: IntCmp can jump to different locations when the value is lower, equal or higher.
Joost Verburg is offline   Reply With Quote
Old 5th May 2003, 21:46   #3
Sunjammer
Major Dude
 
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
Well IntCmp won't jump anywhere in the case of <> so that's at least one way.
Sunjammer is offline   Reply With Quote
Old 5th May 2003, 22:09   #4
Snover
Junior Member
 
Join Date: Jul 2002
Posts: 30
Send a message via ICQ to Snover Send a message via AIM to Snover Send a message via Yahoo to Snover
Can I concatenate strings and then test?
Snover is offline   Reply With Quote
Old 6th May 2003, 11:31   #5
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
What do you mean? And why not use UpgradeDLL?
Joost Verburg is offline   Reply With Quote
Old 6th May 2003, 18:16   #6
Snover
Junior Member
 
Join Date: Jul 2002
Posts: 30
Send a message via ICQ to Snover Send a message via AIM to Snover Send a message via Yahoo to Snover
Does UpdateDLL actually check versions before it upgrades? I was under the impression that it just automated the process of reboot-overwriting DLLs that couldn't be removed.
Snover is offline   Reply With Quote
Old 6th May 2003, 21:24   #7
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
UpgradeDLL first checks the version. It only updates if an older DLL is installed. It also handles registering, reboots, register-on-reboot etc.
Joost Verburg 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