Archive: Possible InstallLib Problems


Possible InstallLib Problems
I'm having a problem with installlib. It seems to be skipping the update of a dll. Here's the code:


IfFileExists "$INSTDIR\myDll.dll" 0 +2
StrCpy $ALREADY_INSTALLED 1

LogText "Im here dude"
!insertmacro InstallLib REGDLL $ALREADY_INSTALLED NOREBOOT_NOTPROTECTED .\Deploy\dll\myDll.dll $INSTDIR\myDll.dll $TEMP
LogText "Im still here dude"


The log is producing the following text:


IfFileExists: file "D:\Program Files\myDll.dll" exists, jumping 0
Im here dude
IfFileExists: file "D:\Program Files\myDll.dll" exists, jumping 0
Jump: 1320
Im still here dude


If I update the dll, the old version stays. See any problems?

Thanks,
Eric <><

Lets get the silly reason out of the way first... Did you update the version number as well?


Nope, but 3 lines above this code is:

SetOverwrite on


That doesn't affect InstallLib. It handles the overwrite mode on its own. You must update the version number for InstallLib to upgrade.


Ouch! I hate losing control;0). Guess I'll have to deal with it. Thanks for the help AGAIN Kichik!