Add ability to perform SxS install in MSI package manifest

This commit is contained in:
Raghu Shantha [MSFT] 2016-07-12 15:37:40 -07:00
parent ca1780255f
commit 05b350961c

View File

@ -556,7 +556,10 @@ Built upon .NET Core, it is also a C# REPL.
Write-Verbose "Packaging $Source" Write-Verbose "Packaging $Source"
if ($IsWindows) { 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" $appxPackagePath = New-AppxPackage -PackageVersion $Version -SourcePath $Source -AssetsPath "$PSScriptRoot\Assets"
$packages = @($msiPackagePath, $appxPackagePath) $packages = @($msiPackagePath, $appxPackagePath)