Skip to content

Commit

Permalink
create windows msi
Browse files Browse the repository at this point in the history
  • Loading branch information
dphulkar-msft committed Nov 4, 2024
1 parent 85ee524 commit 1a3104c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions setup/create_windows_msi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,12 @@ steps:
$wixXml.Wix.Product.Manufacturer = "Updated Manufacturer"
$wixXml.Wix.Product.UpgradeCode = $uuid
$component = $wixXml.Wix.Product.Directory.InstallDir.Component
$component.Guid = $uuid
# Check if Component element exists and has a Guid attribute
if ($component -and $component.HasAttribute("Guid")) {
$component.SetAttribute("Guid", $uuid)
} else {
Write-Host "Component element or Guid attribute not found in XML structure."
}
# Update the file source path
$file = $component.File
Expand Down

0 comments on commit 1a3104c

Please sign in to comment.