From 30c68220f23afd641608db58422e7efd24a39da6 Mon Sep 17 00:00:00 2001 From: ek-dyoder Date: Wed, 4 Mar 2026 23:16:04 -0500 Subject: [PATCH] fix: correct path for deleting old version of ekDNSHelper --- Fix-UpdateLocalHosts.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Fix-UpdateLocalHosts.ps1 b/Fix-UpdateLocalHosts.ps1 index 6534b48..37fae23 100644 --- a/Fix-UpdateLocalHosts.ps1 +++ b/Fix-UpdateLocalHosts.ps1 @@ -28,9 +28,9 @@ If ($DownloadRequired) { } # Delete the old version of ekDNSHelper if it exists -If ( Test-Path ($Global:ToolsDirectory + '\dns-helper.exe') ) { - Write-Output "Deleting old version of ekDNSHelper: ${Global:ToolsDirectory}\dns-helper.exe" - Remove-Item -Path ($Global:ToolsDirectory + '\dns-helper.exe') -Force -ErrorAction SilentlyContinue +If ( Test-Path ($Global:ToolsDirectory + '\dnshelper.exe') ) { + Write-Output "Deleting old version of ekDNSHelper: ${Global:ToolsDirectory}\dnshelper.exe" + Remove-Item -Path ($Global:ToolsDirectory + '\dnshelper.exe') -Force -ErrorAction SilentlyContinue } $RefreshScript = $Global:ToolsDirectory + '\refresh-local-hosts.bat'