Would I like to display the version of an executable installed setup in the section description?
LangString DESC_SecSoftware $ {LANG_ENGLISH} "Software PX"! Insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN! Insertmacro MUI_DESCRIPTION_TEXT $ {DescText} "Software Testing"! Insertmacro MUI_FUNCTION_DESCRIPTION_END How to read the file version of test.exe?
It is possible to read the file version like this:
$ {GetFileVersion} "C: \ FTP \ programm.exe" $ ProgramVersion < / Pre> with ! Include "FileFunc.nsh" But the path must be completed.
"itemprop =" text "> $ I do not manage to read fileVersion whitch is rooted in install. {} GetFileVersion you'll read a file version on the sequence machine where you are performing the installation, and where the file is definitely not out of the presenter .exe GetDllVersionLocal that is executed on compile time and the original programmer will find the version from the present .exe on the host. ! Includes "logiclib.nsh" ShowInstDetails showing outfile "exeversion.exe"! "Getting version $ EXEPATH" exe_to_read defined "some.exe" section DetailPrint GetDllVersionLocal "$ {Exe_to_read}" $ R0 $ R1; Two values were read during the compilation IntOp $ R2 $ R0 / 0x00010000 IntOp $ R3 $ R0 & 0x0000FFFF IntOp $ R4 $ R1 / 0x00010000 IntOp $ R5 $ R1 & amp; 0x0000FFFF strcpy $ 0 "$ R2 $ R3 $ R4 $ R5 ..." DetailPrint "Read Version: $ 0" SectionEnd
No comments:
Post a Comment