Last active
July 29, 2019 12:05
-
-
Save varp/38514dfeba5136434887ef47f4d7df65 to your computer and use it in GitHub Desktop.
Bria 5 Soft Phone installer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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