File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 "
1313if ($Path_WingetAll ){$Path_Winget = $Path_WingetAll [-1 ].Path}
1414cd $Path_Winget
1515
Original file line number Diff line number Diff line change 1010
1111try {
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
Original file line number Diff line number Diff line change 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"
55if ($winget_exe.count -gt 1 ){
66 $winget_exe = $winget_exe [-1 ].Path
77}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ $Path_local = "$Env:Programfiles\_MEM"
1010Start-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"
1414if ($winget_exe.count -gt 1 ){
1515 $winget_exe = $winget_exe [-1 ].Path
1616}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ $Path_local = "$Env:Programfiles\_MEM"
33Start-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"
77if ($winget_exe.count -gt 1 ){
88 $winget_exe = $winget_exe [-1 ].Path
99}
You can’t perform that action at this time.
0 commit comments