Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 24th August 2006, 12:28   #1
TJK
Junior Member
 
Join Date: Jun 2006
Posts: 17
Updating Files - some with and some without version numebrs

Hi

First, I am not a professional programmer and this is my first posting, so please forgive me if I ask something simple or I have clicked the wrong options for the posting.

I'm using NSIS 2.18 at the moment - I see that there is a 2.19 version, but the changes in 2.19 don't appear (as far as I can tell) to relate to my issue...

I have created an installer which uses the InstallLib macros to install some .DLL and .EXE files (so that I can use the various REG and SHARED options - thanks). I need it to update some existing files, some of which have file version numbers and some of which do not but all of which might be locked open so need to be updated on a Windows restart.

From what I've seen (and this thread appears to confirm it) InstallLib only looks at the file version number when deciding whether or not a file needs to be copied. Have I understood correctly?

I see in the tread noted above that kichik wrote "You can use SetOverwrite ifnewer" - does that mean that InstallLib should obey the "SetOverwrite ifnewer" instruction if neither the existing nor potential fils have version numbers, or that when there is no version number I should revert to the use of the basic "File" instruction in which case I guess I loose all the nice functions provided by the InstallLib macros.

Also in the tread noted above kichik suggested that changes to the InstallLib macro might be required and that if a patch was produced he'd consdier including it - patching the macro file is a bit beyond me, did anyone manage to implement the extension?

Thanks

Tim
TJK is offline   Reply With Quote
Old 25th August 2006, 12:28   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
The Library macros only treat versions. To use SetOverwrite ifnewer, you need to revert to File. The Library macros ignore SetOverwrite.

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
Old 25th August 2006, 12:37   #3
TJK
Junior Member
 
Join Date: Jun 2006
Posts: 17
Thanks kichik

Regards

Tim
TJK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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