Skip to content

Instantly share code, notes, and snippets.

@varp
Last active July 29, 2019 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save varp/38514dfeba5136434887ef47f4d7df65 to your computer and use it in GitHub Desktop.
Save varp/38514dfeba5136434887ef47f4d7df65 to your computer and use it in GitHub Desktop.
Bria 5 Soft Phone installer
param(
[string]$userProfilePath="C:\Users\user",
[string]$fileToFInd="*bria*.exe"
)
$searchRes = Get-ChildItem -Path $userProfilePath -Recurse -File -Filter $fileToFInd
if (-not $searchRes)
{
Out-Host "Installer was not found - in $userProfilePath"
return
}
$installerPath = ($searchRes | select -ExpandProperty FullName)
Write-Output "Installer was found - $installerPath"
$command = '"$installerPath" --Silent --AcceptEULA=YES'
Write-Output "Run slient install - $command"
iex "& $command"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment