Skip to content

Commit 3b56486

Browse files
authored
Apply patch from Trenly#200
1 parent 4a29eaf commit 3b56486

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tools/YamlCreate.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ function Test-IsMsix {
823823
$script:CleanupPaths += @($temporaryFilePath; $expandedArchivePath)
824824

825825
# There are a few different indicators that a package can be installed with MSIX technology, look for any of these file names
826-
$msixIndicators = @('AppxSignature.p7x'; 'AppxManifest.xml'; 'AppxBundleManifest.xml')
826+
$msixIndicators = @('AppxSignature.p7x'; 'AppxManifest.xml'; 'AppxBundleManifest.xml', 'AppxBlockMap.xml')
827827
foreach ($filename in $msixIndicators) {
828828
if (Get-ChildItem -Path $expandedArchivePath -Recurse -Depth 3 -Filter $filename) { return $true } # If any of the files is found, it is an msix
829829
}
@@ -922,9 +922,9 @@ function Test-IsInno {
922922
[String] $Path
923923
)
924924

925-
$Resources = Get-Win32ModuleResource -Path $Path -ResourceType -DontLoadResource -ErrorAction SilentlyContinue
925+
$Resources = Get-Win32ModuleResource -Path $Path -DontLoadResource -ErrorAction SilentlyContinue
926926
# https://github.com/jrsoftware/issrc/blob/main/Projects/Src/Shared.Struct.pas#L417
927-
if ($Resources.Name -contains '#11111') { return $true } # If the resource name is #11111, it is an Inno installer
927+
if ($Resources.Name.Value -contains '#11111') { return $true } # If the resource name is #11111, it is an Inno installer
928928
return $false
929929
}
930930

0 commit comments

Comments
 (0)