From 394b8a9d247fe1860f92f438d5db51d1f0edcd70 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Mon, 5 Mar 2018 15:08:05 +0100 Subject: [PATCH] Add description and requirements. --- Scripts/Install-Service.ps1 | 4 ++++ Scripts/Make-Package.ps1 | 6 ++++++ Updater/Update-Service.ps1 | 5 +++-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Scripts/Install-Service.ps1 b/Scripts/Install-Service.ps1 index e79b91b..d7e5d85 100644 --- a/Scripts/Install-Service.ps1 +++ b/Scripts/Install-Service.ps1 @@ -1,4 +1,8 @@ +# helper script to install the AutoTx service on a computer +# set our requirements: +#Requires -version 5.1 +#Requires -RunAsAdministrator function Start-MyService { diff --git a/Scripts/Make-Package.ps1 b/Scripts/Make-Package.ps1 index a561ab0..f6bda7d 100644 --- a/Scripts/Make-Package.ps1 +++ b/Scripts/Make-Package.ps1 @@ -1,3 +1,9 @@ +# helper script to create a package from an AutoTx build that can be used from +# the included "Install-Service.ps1" script as well as with the AutoTx-Updater + +# set our requirements: +#Requires -version 5.1 + $ResourceDir = "..\Resources" diff --git a/Updater/Update-Service.ps1 b/Updater/Update-Service.ps1 index 044f522..7a6ec29 100644 --- a/Updater/Update-Service.ps1 +++ b/Updater/Update-Service.ps1 @@ -1,8 +1,9 @@ # Script to be run by the task scheduler for automatic updates of the AutoTx # service binaries and / or configuration file. -# Testing has been done on PowerShell 5.1 only, so we set this as a requirement: -#requires -version 5.1 +# set our requirements: +#Requires -version 5.1 +#Requires -RunAsAdministrator [CmdletBinding()] -- GitLab