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'