Archive: Warnings with installlib macro


Warnings with installlib macro
I am using the installlib macro to install some dlls, ocxs,etc. but I am getting loads of warnings like the following:

label "installlib.register_168.15" not used
label "installlib.done_168.15" not used
label "installlib.register_169.15" not used
label "installlib.done_169.15" not used
label "installlib.register_170.15" not used
label "installlib.done_170.15" not used
label "installlib.register_171.15" not used
label "installlib.done_171.15" not used

What am I not doing that I should be?

Thanks


Which version of NSIS are you using? What's in lines 168-171 in your script?


I am using v2.03

line 172 contains an installlib macro:

!insertmacro InstallLib DLL $1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\TimeBomb.dll" "$SYSDIR\TimeBomb.dll" "$SYSDIR"


Was there a warning for line 172 too?


Yes sorry for the confusion line 168 is now line 172. This is the first warning I get and also the first installlib macro line in the script


Fixed in latest CVS version. The fixed version is also attached to this post.


That's fixed it - thanks.


you mattwilkinson, the !insertmacro InstallLib DLL $1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\TimeBomb.dll" "$SYSDIR\TimeBomb.dll" "$SYSDIR"
suppose to be no quota right man??


I get a warning for InstallLib
(NSIS 2.04)

installlib.done_${INSTALLLIB_UNIQUE}

label is not used if you insert the macro like this:

!insertmacro InstallLib REGDLL NOTSHARED NOREBOOT_NOTPROTECTED

It seems like the label should be within some !if(n)def or you may insert a

Goto installlib.done_${INSTALLLIB_UNIQUE}

just before the label.


2.04 was released before this was reported. It does not contain the fix.