Skip to content

Commit 001f78b

Browse files
authored
Merge pull request #19 from the-project-group/main
Fixed Winget Path to also work for arm64 (replaced x64 with *)
2 parents 199a7e5 + 40c42c9 commit 001f78b

8 files changed

Lines changed: 5 additions & 5 deletions

File tree

source/.DS_Store

6 KB
Binary file not shown.

source/ressources/.DS_Store

6 KB
Binary file not shown.
6 KB
Binary file not shown.

source/ressources/template/proactive remediations/detection-winget-upgrade.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Param(
99
)
1010

1111
# resolve and navigate to winget
12-
$Path_WingetAll = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe"
12+
$Path_WingetAll = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_*__8wekyb3d8bbwe"
1313
if($Path_WingetAll){$Path_Winget = $Path_WingetAll[-1].Path}
1414
cd $Path_Winget
1515

source/ressources/template/proactive remediations/remediation-winget-upgrade.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Param(
1010

1111
try{
1212
# resolve and navigate to winget
13-
$Path_WingetAll = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe"
13+
$Path_WingetAll = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_*__8wekyb3d8bbwe"
1414
if($Path_WingetAll){$Path_Winget = $Path_WingetAll[-1].Path}
1515
cd $Path_Winget
1616

source/ressources/template/winget/check.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$ProgramName = "WINGETPROGRAMID"
22

33
# resolve winget_exe
4-
$winget_exe = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe\winget.exe"
4+
$winget_exe = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_*__8wekyb3d8bbwe\winget.exe"
55
if ($winget_exe.count -gt 1){
66
$winget_exe = $winget_exe[-1].Path
77
}

source/ressources/template/winget/install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $Path_local = "$Env:Programfiles\_MEM"
1010
Start-Transcript -Path "$Path_local\Log\$ProgramName-install.log" -Force -Append
1111

1212
# resolve winget_exe
13-
$winget_exe = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe\winget.exe"
13+
$winget_exe = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_*__8wekyb3d8bbwe\winget.exe"
1414
if ($winget_exe.count -gt 1){
1515
$winget_exe = $winget_exe[-1].Path
1616
}

source/ressources/template/winget/uninstall.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ $Path_local = "$Env:Programfiles\_MEM"
33
Start-Transcript -Path "$Path_local\Log\uninstall\$ProgramName-uninstall.log" -Force -Append
44

55
# resolve winget_exe
6-
$winget_exe = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe\winget.exe"
6+
$winget_exe = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_*__8wekyb3d8bbwe\winget.exe"
77
if ($winget_exe.count -gt 1){
88
$winget_exe = $winget_exe[-1].Path
99
}

0 commit comments

Comments
 (0)