-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show short commit id in Setting and allow msi to override installatio…
…ns of the same main version
- Loading branch information
1 parent
feef424
commit 99e4035
Showing
5 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env pwsh | ||
param( | ||
[String]$Path, | ||
[String]$ProductCode | ||
) | ||
|
||
$WindowsInstaller = New-Object -com WindowsInstaller.Installer | ||
$Database = $WindowsInstaller.OpenDatabase($Path, 2) | ||
$Query = "UPDATE Property SET Property.Value='$ProductCode' WHERE Property.Property='ProductCode'" | ||
$View = $Database.OpenView($Query) | ||
$View.Execute() | ||
$Database.Commit() | ||
$View.Close() | ||
|
||
$View = $null | ||
$Database = $null | ||
[System.GC]::Collect() | ||
[System.GC]::WaitForPendingFinalizers() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters