This project is read-only.
2
Vote

Please avoid force user-input in install-packages.ps1

description

An "install-package.ps1" script requires user input into console after install process is finished.
Write-Host "
You can now edit the configuration file to log events from your own application by opening 'SemanticLogging-svc.xml'.
To get IntelliSense from the XML schema file, you can open the configuration in Microsoft Visual Studio.
After the configuration is updated, start the Windows service by executing 'SemanticLogging-svc.exe -start' from an elevated command prompt.

Press ENTER key to finish..."
$x = $host.UI.ReadLine()
I'd like to install and deploy SLAB service automatically (e.g. on CI server), but "$host.UI.ReadLine()" is hard to input from script execution.

I have an idea that script doesn't output message when "autoAcceptTerms" is specified.
if (-not($autoAcceptTerms))
{
    Write-Host "
You can now edit the configuration file to log events from your own application by opening 'SemanticLogging-svc.xml'.
To get IntelliSense from the XML schema file, you can open the configuration in Microsoft Visual Studio.
After the configuration is updated, start the Windows service by executing 'SemanticLogging-svc.exe -start' from an elevated command prompt.

Press ENTER key to finish..."
    $x = $host.UI.ReadLine()
}
Please consider include it at next release.

comments