Skip to content
⌘ NSIS Forum Archive

Injecting MSI Package Properties at Compile-Time

1 posts

Zinthose#

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 😁
Check out the Wiki post for more info.

Example:
${!MSIPropertyGet} "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