Skip to content

Commit

Permalink
Merge pull request #19 from the-project-group/main
Browse files Browse the repository at this point in the history
Fixed Winget Path to also work for arm64 (replaced x64 with *)
  • Loading branch information
FlorianSLZ committed Aug 31, 2023
2 parents 199a7e5 + 40c42c9 commit 001f78b
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 5 deletions.
Binary file added source/.DS_Store
Binary file not shown.
Binary file added source/ressources/.DS_Store
Binary file not shown.
Binary file added source/ressources/template/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Param(
)

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Param(

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

Expand Down
2 changes: 1 addition & 1 deletion source/ressources/template/winget/check.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$ProgramName = "WINGETPROGRAMID"

# resolve winget_exe
$winget_exe = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe\winget.exe"
$winget_exe = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_*__8wekyb3d8bbwe\winget.exe"
if ($winget_exe.count -gt 1){
$winget_exe = $winget_exe[-1].Path
}
Expand Down
2 changes: 1 addition & 1 deletion source/ressources/template/winget/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $Path_local = "$Env:Programfiles\_MEM"
Start-Transcript -Path "$Path_local\Log\$ProgramName-install.log" -Force -Append

# resolve winget_exe
$winget_exe = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe\winget.exe"
$winget_exe = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_*__8wekyb3d8bbwe\winget.exe"
if ($winget_exe.count -gt 1){
$winget_exe = $winget_exe[-1].Path
}
Expand Down
2 changes: 1 addition & 1 deletion source/ressources/template/winget/uninstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $Path_local = "$Env:Programfiles\_MEM"
Start-Transcript -Path "$Path_local\Log\uninstall\$ProgramName-uninstall.log" -Force -Append

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

0 comments on commit 001f78b

Please sign in to comment.