Skip to content
Snippets Groups Projects
Commit e8e57cc2 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Remove old code block not required anymore.

parent e74ffcd1
No related branches found
No related tags found
No related merge requests found
......@@ -92,28 +92,6 @@ function Install-Service {
}
function Uninstall-FileCopyService {
try {
$FCS = "FileCopyService"
$Service = Get-Service $FCS -ErrorAction Stop
Stop-Service $FCS
}
catch {
return
}
Write-Host "Uninstalling service $($FCS)... "
Write-Host "========================================================================"
$InstallUtil = "C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe"
$ServiceExe = "C:\Tools\" + $FCS + "\" + $FCS + ".exe"
$ArgList = ("/uninstall", "$ServiceExe")
$InstallProcess = Start-Process -FilePath "$InstallUtil" -ArgumentList $ArgList -Wait -NoNewWindow -PassThru
Write-Host "========================================================================"
Write-Host "InstallUtil exit code: $($InstallProcess.ExitCode)"
Write-Host "========================================================================"
}
$LocalConfiguration = ".\ScriptsConfig.ps1"
if (Test-Path $LocalConfiguration) {
. $LocalConfiguration
......@@ -123,8 +101,6 @@ if (Test-Path $LocalConfiguration) {
}
Uninstall-FileCopyService
try {
$Service = Get-Service $ServiceName -ErrorAction Stop
Write-Host "Service $($ServiceName) already installed, updating."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment