View Single Post
Old 21st September 2018, 14:25   #5
TrifonovS
Senior Member
 
Join Date: Apr 2009
Location: Bulgaria
Posts: 191
No. Here is the macro:
PHP Code:
### Get library version
!macro __InstallLib_Helper_GetVersion TYPE FILE
  
!tempfile LIBRARY_TEMP_NSH
  
!ifdef NSIS_WIN32_MAKENSIS
    
!execute '"${NSISDIR}\Bin\LibraryLocal.exe" "${TYPE}" "${FILE}" "${LIBRARY_TEMP_NSH}"'
  
!else
    !
execute 'LibraryLocal "${TYPE}" "${FILE}" "${LIBRARY_TEMP_NSH}"'
    
!if ${TYPE} == 'T'
      
!warning "LibraryLocal currently supports TypeLibs version detection on Windows only"
    
!endif
  !endif
  !include 
"${LIBRARY_TEMP_NSH}"
  
!delfile "${LIBRARY_TEMP_NSH}"
  
!undef LIBRARY_TEMP_NSH
!macroend 
TrifonovS is offline   Reply With Quote