File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments