Injecting MSI Package Properties at Compile-Time
I put together a macro that allows for reading MSI package values from the property table at the time of compiling for injection into the NSIS installer package. Enjoy :D
Check out the Wiki post for more info.
Example:
"SomePackage.ProductName" "SomePackage.msi" "ProductName"
>${!MSIPropertyGet} "SomePackage.ProductVersion" "SomePackage.msi" "ProductVersion"
>!define DisplayName `${SomePackage.ProductName} v${SomePackage.ProductVersion}`
>OutFile Test.exe
Name`${DisplayName} Special Build`
>Section
SectionEnd
>