Skip to content

Commit

Permalink
add default binpath as current folder
Browse files Browse the repository at this point in the history
  • Loading branch information
BarsikV authored May 20, 2020
1 parent 0265317 commit 467cf99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Install service script.ps1
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
param (
$BinPath = "C:\CommunicationDeviceSwitcherService",
$BinPath = "",
$Startup = "Automatic",
$ExeName = "\CommunicationDeviceSwitcherService.exe"
)

if ([string]::IsNullOrEmpty($BinPath)){
$BinPath = Get-Location
}

$params = @{
Name = "CommunicationAudioAutoSwitchService"
BinaryPathName = "$BinPath$ExeName"
Expand Down

0 comments on commit 467cf99

Please sign in to comment.