View Single Post
Old 3rd October 2018, 05:53   #13
TrifonovS
Senior Member
 
Join Date: Apr 2009
Location: Bulgaria
Posts: 191
I don't know if my patch is completely correct, but it worked so many years (probably not tested in any conditions). I made it in macro InstallLib. The original code is:

PHP Code:
      GetDLLVersion $R4 $R2 $R3

      
!undef LIBRARY_VERSION_HIGH
      
!undef LIBRARY_VERSION_LOW

      
!ifndef INSTALLLIB_LIBTYPE_TLB INSTALLLIB_LIBTYPE_REGDLLTLB

        IntCmpU $R0 $R2 0 
"installlib.register_${INSTALLLIB_UNIQUE}" "installlib.upgrade_${INSTALLLIB_UNIQUE}"
        
IntCmpU $R1 $R3 "installlib.register_${INSTALLLIB_UNIQUE}" "installlib.register_${INSTALLLIB_UNIQUE}\
          
"installlib.upgrade_${INSTALLLIB_UNIQUE}"

      
!else
... 
and I made the following modification:

PHP Code:
      GetDLLVersion $R4 $R2 $R3

      
!undef LIBRARY_VERSION_HIGH
      
!undef LIBRARY_VERSION_LOW

      
!ifndef INSTALLLIB_LIBTYPE_TLB INSTALLLIB_LIBTYPE_REGDLLTLB

        IntCmpU $R0 $R2 0 
"installlib.register_${INSTALLLIB_UNIQUE}" "installlib.upgrade_${INSTALLLIB_UNIQUE}"
        
!ifdef LIBRARY_VERSION_UPDATEWHENEQUAL
          IntCmpU $R1 $R3 
"installlib.upgrade_${INSTALLLIB_UNIQUE}" "installlib.register_${INSTALLLIB_UNIQUE}\
            
"installlib.upgrade_${INSTALLLIB_UNIQUE}"
        
!else
          
IntCmpU $R1 $R3 "installlib.register_${INSTALLLIB_UNIQUE}" "installlib.register_${INSTALLLIB_UNIQUE}\
            
"installlib.upgrade_${INSTALLLIB_UNIQUE}"
        
!endif
  
      !else
... 
The define LIBRARY_VERSION_UPDATEWHENEQUAL enables the modification.
TrifonovS is offline   Reply With Quote