Archive: Updating Files - some with and some without version numebrs


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


The Library macros only treat versions. To use SetOverwrite ifnewer, you need to revert to File. The Library macros ignore SetOverwrite.


Thanks kichik

Regards

Tim