Skip to content

Commit 70d0a8a

Browse files
authored
change installation instructions (#45)
1 parent 3d33a5b commit 70d0a8a

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,10 @@ Set default audio device (playback/recording)
1010
Set volume and mute state of default audio device (playback/recording)
1111

1212

13-
## Import Cmdlet to PowerShell
14-
Download <a href="https://github.com/frgnca/AudioDeviceCmdlets/releases/download/v3.0/AudioDeviceCmdlets.dll">AudioDeviceCmdlets.dll</a>
15-
```powershell
16-
New-Item "$($profile | split-path)\Modules\AudioDeviceCmdlets" -Type directory -Force
17-
Copy-Item "C:\Path\to\AudioDeviceCmdlets.dll" "$($profile | split-path)\Modules\AudioDeviceCmdlets\AudioDeviceCmdlets.dll"
18-
Set-Location "$($profile | Split-Path)\Modules\AudioDeviceCmdlets"
19-
Get-ChildItem | Unblock-File
20-
Import-Module AudioDeviceCmdlets
13+
## Installation
14+
Run as administrator
15+
```PowerShell
16+
Install-Module -Name AudioDeviceCmdlets
2117
```
2218

2319

@@ -84,6 +80,15 @@ Write-AudioDevice -PlaybackMeter # Writes the default playback device's power o
8480

8581
AudioDeviceCmdlets\bin\Release\AudioDeviceCmdlets.dll
8682

83+
6. Import Cmdlet to PowerShell
84+
```PowerShell
85+
New-Item "$($profile | split-path)\Modules\AudioDeviceCmdlets" -Type directory -Force
86+
Copy-Item "C:\Path\to\AudioDeviceCmdlets.dll" "$($profile | split-path)\Modules\AudioDeviceCmdlets\AudioDeviceCmdlets.dll"
87+
Set-Location "$($profile | Split-Path)\Modules\AudioDeviceCmdlets"
88+
Get-ChildItem | Unblock-File
89+
Import-Module AudioDeviceCmdlets
90+
```
91+
8792

8893
## Attribution
8994

0 commit comments

Comments
 (0)