File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Sources/Winget-AutoUpdate Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ function Install-App ($AppID, $AppArgs) {
160160 }
161161
162162 Write-ToLog " -> Running: `" $Winget `" $WingetArgs "
163- & " $Winget " $WingetArgs | Where-Object { $_ -notlike " *" } | Tee-Object - file $LogFile - Append
163+ & " $Winget " $WingetArgs | Where-Object { $_ -notlike " *" } | Tee-Object - file $LogFile - Append
164164
165165 if ($ModsInstall ) {
166166 Write-ToLog " -> Modifications for $AppID during install are being applied..." " DarkYellow"
@@ -212,7 +212,7 @@ function Uninstall-App ($AppID, $AppArgs) {
212212 Write-ToLog " -> Uninstalling $AppID ..." " DarkYellow"
213213 $WingetArgs = " uninstall --id $AppID -e --accept-source-agreements -h $AppArgs " -split " "
214214 Write-ToLog " -> Running: `" $Winget `" $WingetArgs "
215- & " $Winget " $WingetArgs | Where-Object { $_ -notlike " *" } | Tee-Object - file $LogFile - Append
215+ & " $Winget " $WingetArgs | Where-Object { $_ -notlike " *" } | Tee-Object - file $LogFile - Append
216216
217217 if ($ModsUninstall ) {
218218 Write-ToLog " -> Modifications for $AppID during uninstall are being applied..." " DarkYellow"
@@ -294,6 +294,7 @@ $Script:IsElevated = $CurrentPrincipal.IsInRole([Security.Principal.WindowsBuilt
294294# Get WAU Installed location
295295$WAURegKey = " HKLM:\SOFTWARE\Romanitho\Winget-AutoUpdate\"
296296$Script :WAUInstallLocation = Get-ItemProperty $WAURegKey - ErrorAction SilentlyContinue | Select-Object - ExpandProperty InstallLocation
297+
297298# Use the Working Dir (even if it is from a symlink)
298299$Mods = " $realPath \mods"
299300
You can’t perform that action at this time.
0 commit comments