Skip to content

Commit 467cf99

Browse files
authored
add default binpath as current folder
1 parent 0265317 commit 467cf99

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Install service script.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
param (
2-
$BinPath = "C:\CommunicationDeviceSwitcherService",
2+
$BinPath = "",
33
$Startup = "Automatic",
44
$ExeName = "\CommunicationDeviceSwitcherService.exe"
55
)
66

7+
if ([string]::IsNullOrEmpty($BinPath)){
8+
$BinPath = Get-Location
9+
}
10+
711
$params = @{
812
Name = "CommunicationAudioAutoSwitchService"
913
BinaryPathName = "$BinPath$ExeName"

0 commit comments

Comments
 (0)