From e8e57cc2ba65841b07ba255fa1c43dfa159af34e Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Tue, 12 Dec 2017 11:38:54 +0100 Subject: [PATCH] Remove old code block not required anymore. --- AutoTx/Resources/Install-Service.ps1 | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/AutoTx/Resources/Install-Service.ps1 b/AutoTx/Resources/Install-Service.ps1 index 50e65de..ad8e4e5 100644 --- a/AutoTx/Resources/Install-Service.ps1 +++ b/AutoTx/Resources/Install-Service.ps1 @@ -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." -- GitLab