Added !gettlbversion and TLB reading support on POSIX

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6913 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2017-10-03 20:48:29 +00:00
parent f34fd48105
commit a51d89712c
19 changed files with 256 additions and 247 deletions

View file

@ -156,12 +156,21 @@ This command creates a temporary file. It puts its path into a define, named \e{
\S1{ppgetdllversion} !getdllversion
\c localfilename define_basename
\c [/noerrors] [/packed] localfilename define_basename
This is similar to \R{getdllversionlocal}{GetDLLVersionLocal}, only it stores the version number in defines and can therefore be used anywhere, not just inside functions and sections.
This is similar to \R{getdllversionlocal}{GetDLLVersionLocal}, only it stores the version number in defines and can therefore be used anywhere, not just inside functions and sections. /packed returns the information in two DWORDs.
\c !getdllversion "$%WINDIR%\Explorer.exe" expv_
\c !echo "Explorer.exe version is ${expv_1}.${expv_2}.${expv_3}.${expv_4}"
\c !getdllversion "$%WINDIR%\Explorer.exe" Expv_
\c !echo "Explorer.exe version is ${Expv_1}.${Expv_2}.${Expv_3}.${Expv_4}"
\S1{ppgettlbversion} !gettlbversion
\c [/noerrors] [/packed] localfilename define_basename
Get the version information from a .TLB file.
\c !gettlbversion /packed "$%WINDIR%\System32\stdole32.tlb" TLBVER_
\c !echo "${TLBVER_HIGH}.${TLBVER_LOW}"
\S1{warning} !warning

View file

@ -10,6 +10,10 @@ Released on ??? ??rd, 20??
\b Added more NSD controls and macros (\W{http://sf.net/p/nsis/feature-requests/543}{RFE #543})
\b Added \R{ppgettlbversion}{!gettlbversion}
\b \R{library}{Library} TLB version support on POSIX
\S2{} Minor Changes
\b Removed unused NSD_LB_Clear macro parameter