Skip to content

Enable MSI upgrades rather than side-by-side install - #4259

Merged
Travis Plunk (TravisEz13) merged 1 commit into
PowerShell:masterfrom
SteveL-MSFT:msi-upgrade
Jul 17, 2017
Merged

Enable MSI upgrades rather than side-by-side install#4259
Travis Plunk (TravisEz13) merged 1 commit into
PowerShell:masterfrom
SteveL-MSFT:msi-upgrade

Conversation

@SteveL-MSFT

Copy link
Copy Markdown
Member

MSI only works against A.B.C type version strings. So to enable beta.X to beta.X+1 upgrades, we have to use the AllowSameVersionUpgrades as they are all effectively 6.0.0 from MSI point of view.

Note that to get Wix toolset working on Win10, you may have to pass -sval to light.exe.

Fix #3946

@SteveL-MSFT Steve Lee (SteveL-MSFT) changed the title Enable upgrades rather than side-by-side install Enable MSI upgrades rather than side-by-side install Jul 14, 2017
@raghushantha

Copy link
Copy Markdown
Member

Steve Lee (@SteveL-MSFT) Changes look good. The only thing is to watch out for is that the 'ProductGuid' needs to be the same if you need upgrade to be supported.

For major version changes, ProductGuid can be changed

@SteveL-MSFT

Copy link
Copy Markdown
Member Author

Raghu Shantha (@raghushantha) currently, Start-PSPackage has a default static ProductGuid so we should be good there.

@TravisEz13
Travis Plunk (TravisEz13) merged commit 0627409 into PowerShell:master Jul 17, 2017
@SteveL-MSFT
Steve Lee (SteveL-MSFT) deleted the msi-upgrade branch July 18, 2017 04:35
@ChristophB125

Copy link
Copy Markdown

Steve Lee (@SteveL-MSFT) or Raghu Shantha (@raghushantha) It's great to have upgradability support but does this mean that we lose the ability of having multiple version installed side-by-side? We use older versions of PowerShell Core in our CI system (that is locked down and therefore not updated unless needed) and I always found it handy being able to repro on my local machine using the same version that is being used in CI in order to replicate the exact same behaviour.

@SteveL-MSFT

Copy link
Copy Markdown
Member Author

ChristophB125 You can still have side-by-side by downloading the zip and extracting the contents in a secure location (this will always be supported).

@ChristophB125

Copy link
Copy Markdown

Thanks for the info. The self contained version in a zip file should be sufficient for our use case.

Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants