Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

pull MSI version from environment #326

Merged
merged 2 commits into from
Nov 11, 2016
Merged

Conversation

jay0lee
Copy link
Contributor

@jay0lee jay0lee commented Oct 27, 2016

Currently we don't have version / build numbers anywhere else in the source. Set WIX config to use a environment variable for MSI version also. With this change you can run:

export CONNECTOR_VERSION=0.9.1
/c/Program\ Files\ (x86)/WiX\ Toolset\ v3.10/bin/candle.exe -arch x64 windows-connector.wxs dependencies.wxs
/c/Program\ Files\ (x86)/WiX\ Toolset\ v3.10/bin/light.exe -ext "C:\Program Files (x86)\WiX Toolset v3.10\bin\WixUIExtension.dll" -ext WixfirewallExtension windows-connector.wixobj dependencies.wixobj -o windows-connector.msi

to dynamically set the MSI version number.

Currently we don't have version / build numbers anywhere else in the source. Set WIX config to use a environment variable for MSI version also. With this change you can run:

export CONNECTOR_VERSION=0.9.1
/c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.10/bin/candle.exe -arch x64 windows-connector.wxs dependencies.wxs
/c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.10/bin/light.exe -ext "C:\Program Files (x86)\WiX Toolset v3.10\bin\WixUIExtension.dll" -ext WixfirewallExtension windows-connector.wixobj dependencies.wixobj -o windows-connector.msi

to dynamically set the MSI version number.
Copy link
Contributor

@arastooz arastooz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you update the instructions in wix/README.md as well?

@jay0lee jay0lee merged commit d353d01 into master Nov 11, 2016
@jay0lee jay0lee deleted the jay0lee-wix-version-from-env branch May 3, 2017 17:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants