Skip to content

Commit 451f67b

Browse files
committed
Updated readme with upgrade instructions
1 parent 223dd34 commit 451f67b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,26 @@ Import-Module PSReadLine
4848

4949
In either case, you can create the appropriate file if you don't already have one.
5050

51+
Upgrading
52+
============
53+
54+
If you installed with `PSGet` you can run `Update-Module PSReadLine`.
55+
56+
57+
If you've added it to your `$PROFILE`, when you run `Update-Module PSReadLine` you will get the following error
58+
59+
```
60+
Remove-Item : Cannot remove item
61+
C:\Users\{yourName}\Documents\WindowsPowerShell\Modules\PSReadLine\PSReadline.dll: Access to the path
62+
'C:\Users\{yourName}\Documents\WindowsPowerShell\Modules\PSReadLine\PSReadline.dll' is denied.
63+
At C:\Users\{yourName}\Documents\WindowsPowerShell\Modules\PsGet\PsGet.psm1:1009 char:52
64+
```
65+
66+
1. Run `cmd.exe`
67+
2. `powershell -noprofile`
68+
3. `Update-Module PSReadLine`
69+
70+
5171
Usage
5272
=====
5373

0 commit comments

Comments
 (0)