We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0265317 commit 467cf99Copy full SHA for 467cf99
1 file changed
Install service script.ps1
@@ -1,9 +1,13 @@
1
param (
2
- $BinPath = "C:\CommunicationDeviceSwitcherService",
+ $BinPath = "",
3
$Startup = "Automatic",
4
$ExeName = "\CommunicationDeviceSwitcherService.exe"
5
)
6
7
+if ([string]::IsNullOrEmpty($BinPath)){
8
+ $BinPath = Get-Location
9
+}
10
+
11
$params = @{
12
Name = "CommunicationAudioAutoSwitchService"
13
BinaryPathName = "$BinPath$ExeName"
0 commit comments