SkyWire-PSPOS.psm1
<# .SYNOPSIS Downloads the SkyWire Point of Sale installer for a specified build. .DESCRIPTION Downloads the SkyWire Point of Sale installer for a specified build. .PARAMETER tag The tag (ticket number) for the POS build to download and deploy. .PARAMETER rootDir Specify the root directory where all data will reside for the current deployment (default: %TEMP%\SkyWire-PSInstaller). .NOTES This script cannot install POS automatically, as it requires configuration of a terminal via WebConfig prior to install. .EXAMPLE New-SWPOS -tag POS-0000 #> function New-SWPOS { param( [Parameter(Mandatory=$true)] [string] $tag, [Parameter(Mandatory=$false)] [string] $rootDir = "$env:PROGRAMDATA\SkyWire-PSInstaller" ) Get-SWInstallPackage -app "POS" -tag $tag -rootDir $rootDir } <# .SYNOPSIS Uninstalls an existing SkyWire POS installation .DESCRIPTION Uninstalls an existing SkyWire POS installation .EXAMPLE Remove-SWPOS #> function Remove-SWPOS { try { $exePath = "$($env:LOCALAPPDATA)\SkyWirePOS\Update.exe" $param = "--uninstall" & $exePath $param } catch { Write-Error "An error occurred while uninstalling POS. This usually happens when POS is not installed on this computer." throw $_.Exception } } |