Skip to content
⌘ NSIS Forum Archive

Possible InstallLib Problems

5 posts

stonkers#

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 <><
kichik#
That doesn't affect InstallLib. It handles the overwrite mode on its own. You must update the version number for InstallLib to upgrade.
stonkers#
Ouch! I hate losing control;0). Guess I'll have to deal with it. Thanks for the help AGAIN Kichik!