ShareFile-PowerShell icon indicating copy to clipboard operation
ShareFile-PowerShell copied to clipboard

Sharefile Snappin installer issue with Powershell Version 5

Open jcitpro opened this issue 8 years ago • 7 comments

Attempting to install the Snappin using the 64 bit msi, I receive the following error.

Installing Sharefile Snapin Installer requires Powershell Version 4.0 or later.

Thing is I have Version 5 installed (5.1.14393.1532)

Any workarounds for this (besides using Powershell 4.0 on another machine or downgrading)?

Thanks

jcitpro avatar Aug 29 '17 19:08 jcitpro

Hi @jcitpro, we need some more information.

  1. Which OS are you using?
  2. Can you confirm the location of registry entry for the PowershellVersion 5? You can use regedit and search in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell to get its location.

vkvikaskmr avatar Aug 30 '17 08:08 vkvikaskmr

Hi @vkvikaskmr Microsoft Windows [Version 10.0.14393]

In the regsitry location it looks like I only have reg keys for 1 and 3. image

That said when I run the $psversiontable.psversion I see 5 listed. image

Thanks for the help with this.

jcitpro avatar Aug 31 '17 13:08 jcitpro

If you open PowerShell->3 and then select PowershellEngine, you should be able to see all the versions that are supported. Version 5.1 should be one of them. I have tried replicating it on win 8.1 and win 10 but failed to do so. I will try to verify this on the same OS version that you have mentioned and get back to you.

vkvikaskmr avatar Aug 31 '17 14:08 vkvikaskmr

See below.

image

Thanks again.

jcitpro avatar Aug 31 '17 16:08 jcitpro

Hey! @jcitpro can you please share the same snapshot for PowerShell->1. We have one check around that as well.

vkvikaskmr avatar Sep 01 '17 06:09 vkvikaskmr

Those entries do not exist. image

jcitpro avatar Sep 01 '17 15:09 jcitpro

Hi @jcitpro , For snapins to work we should have PowershellVersion Engine v2.0 explicitly installed; the registry of which sits under PowerShell\1. The reason is that if we install a snapin with Powershell v3.0 or higher they are not getting registered as snapin and then the add-pssnapin command fails, probably because v3.0 and above requires modules and not snapins. Need to investigate more on this. So, suggested workaround would be to install PowerShell Engine v2.0 and and then give it a try. Let me know if that works for you. As a reference here is how the registry should look : image

vkvikaskmr avatar Sep 08 '17 11:09 vkvikaskmr