From 42dde682f0e601eb6e36ddaee6c5ece58649d441 Mon Sep 17 00:00:00 2001 From: neko <109633131+nekoppai@users.noreply.github.com> Date: Thu, 8 Jan 2026 12:49:48 +0000 Subject: [PATCH] Clear false detection --- index.html | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 62646ad..a04b80e 100644 --- a/index.html +++ b/index.html @@ -15,7 +15,7 @@ if (-not $args) { if ($ExecutionContext.SessionState.LanguageMode.value__ -ne 0) { $ExecutionContext.SessionState.LanguageMode Write-Host "PowerShell is not running in Full Language Mode." - Write-Host "Help - https://gravesoft.dev/fix_powershell" -ForegroundColor White -BackgroundColor Blue + Write-Host "Help - https://massgrave.dev/fix_powershell" -ForegroundColor White -BackgroundColor Blue return } @@ -25,7 +25,7 @@ if (-not $args) { catch { Write-Host "Error: $($_.Exception.Message)" -ForegroundColor Red Write-Host "Powershell failed to load .NET command." - Write-Host "Help - https://gravesoft.dev/in-place_repair_upgrade" -ForegroundColor White -BackgroundColor Blue + Write-Host "Help - https://massgrave.dev/in-place_repair_upgrade" -ForegroundColor White -BackgroundColor Blue return } @@ -131,10 +131,7 @@ if (-not $args) { else { saps -FilePath $env:ComSpec -ArgumentList "/c """"$FilePath"" -el $args""" -Wait -Verb RunAs } + CheckFile $FilePath - - $FilePaths = @("$env:SystemRoot\Temp\MAS*.cmd", "$env:USERPROFILE\AppData\Local\Temp\MAS*.cmd") - foreach ($FilePath in $FilePaths) { Get-Item $FilePath -ErrorAction SilentlyContinue | Remove-Item } + Remove-Item -Path $FilePath } @args - -