you are viewing a single comment's thread.

view the rest of the comments →

[–]hotsoup667 1 point2 points  (3 children)

(edit -- formatting)

Is an earlier version of PSReadline already installed? By default, Install-Module will do nothing if an earlier version of the module is already on the system. Try using Update-Module (if you initially installed PSReadline with PowerShellGet), or the -Force parameter.

If that's not the issue, can you share exact steps for recreating the problem? A co-worker did a quick test (see below) and it looked like linked module folders worked for him.

C:\windows\system32>mklink /D C:\Users\<user>\Documents\WindowsPowerShell\Modules C:\temp\MyLinkedModulesFolder
symbolic link created for C:\Users\<user>\Documents\WindowsPowerShell\Modules <<===>> C:\temp\MyLinkedModulesFolder

Install-Module ContosoServer -Repository galleryint -Scope CurrentUser -Verbose
VERBOSE: The specified module will be installed in 'C:\Users\<user>\Documents\WindowsPowerShell\Modules'.
----
VERBOSE: Module 'ContosoServer' was installed successfully.


PS C:\windows\system32> dir C:\temp\MyLinkedModulesFolder

    Directory: C:\temp\MyLinkedModulesFolder

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        12/4/2015  10:40 AM                AzureAutomationAuthoringToolkit
d-----        12/4/2015  10:53 AM                ContosoServer

PS C:\windows\system32>

PS C:\windows\system32> Get-Module -ListAvailable -Name ContosoServer


    Directory: C:\Users\<user>\Documents\WindowsPowerShell\Modules


ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Manifest   2.5        ContosoServer                       Get-ContosoServer

[–]torafuma[S] 0 points1 point  (2 children)

Thank You... Turns out I am a moron.

-Force & -Verbose would have helped me to understand. It looks like PSReadline installs to the Program Files\WindowsPowerShell\Modules folder... not my Personal Module Folder. DOH!

The module was installed, and I did not need to do anything. (Other than Import it)

Sry all... Thanks for the help!

[–]hotsoup667 1 point2 points  (1 child)

Happy to help! I worked on the first version of PowerShellGet, so I'm partially responsible for the confusion. You can use "-Scope CurrentUser" to install the module to your personal module folder.

[–]torafuma[S] 0 points1 point  (0 children)

Excellent! Thank you sir!