diff --git a/Windows_10/source_packages_install.ps1 b/Windows_10/source_packages_install.ps1 index 27b19fd50..bcde6a1ab 100644 --- a/Windows_10/source_packages_install.ps1 +++ b/Windows_10/source_packages_install.ps1 @@ -23,7 +23,7 @@ $config = @" echo $config | Out-File -Encoding ASCII -FilePath ./dist/config.json -( $res = Get-ScheduledTask "Taskbar_scroll" ) 2> $null +( $res = Get-ScheduledTask "Taskbar_scroll" -ErrorAction SilentlyContinue ) 2> $null if ($res -eq $null) { $exe_dir = "$PWD\dist" $action = New-ScheduledTaskAction -Execute "$exe_dir\scroll-desktops.exe" `