Skip to content

Commit

Permalink
Add ability to perform SxS install in MSI package manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
raghushantha committed Jul 12, 2016
1 parent ca17802 commit 05b3509
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,10 @@ Built upon .NET Core, it is also a C# REPL.
Write-Verbose "Packaging $Source"

if ($IsWindows) {
$msiPackagePath = New-MSIPackage -ProductSourcePath $Source -ProductVersion $Version -AssetsPath "$PSScriptRoot\Assets"

# Product Guid needs to be unique for every PowerShell version to allow SxS install
$productGuid = [guid]::NewGuid()
$msiPackagePath = New-MSIPackage -ProductSourcePath $Source -ProductVersion $Version -AssetsPath "$PSScriptRoot\Assets" -ProductGuid $productGuid
$appxPackagePath = New-AppxPackage -PackageVersion $Version -SourcePath $Source -AssetsPath "$PSScriptRoot\Assets"

$packages = @($msiPackagePath, $appxPackagePath)
Expand Down

0 comments on commit 05b3509

Please sign in to comment.