Archive: 'Name' function and version information


'Name' function and version information
Many installation scripts start like:

!define PRODUCT_NAME "YourAppName"
!define PRODUCT_VERSION '1.2.312.4'

Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"

I would like to know if it is possible during script compile time, to get the version/date from an exe/dll that will be installed.

For example my main application is called
MainProgram.exe

and it contains version information.

I would like to extract this and use it in my scripts (for example in the 'Name' command

I tried GetDLLVersion but this is not allowed outside a section.

Hope anyone can help me on this.


http://nsis.sourceforge.net/Invoking...n_compile-time

Stu


Thanks Stu !!,

This is working perfectly....