ImportExcel icon indicating copy to clipboard operation
ImportExcel copied to clipboard

PS Version 4.0 install not working

Open ww40 opened this issue 9 years ago • 3 comments

Had some trouble trying to install this to a PS version 4.0 2012 R2 server.

$PSVersionTable Result:

Name Value


PSVersion 4.0
WSManStackVersion 3.0
SerializationVersion 1.1.0.1
CLRVersion 4.0.30319.42000
BuildVersion 6.3.9600.18728
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion 2.2

Attempt (taken from your install recommendations for V4.0 and earlier): iex (new-object System.Net.WebClient).DownloadString('https://raw.github.com/dfinke/ImportExcel/master/Install.ps1')

Result:

iex : The script block cannot be invoked because it contains more than one clause. The Invoke() method can only be used on script blocks that contain a single clause. At line:1 char:1

  • iex (new-object System.Net.WebClient).DownloadString('https://raw.github.com/dfi ...
  •   + CategoryInfo          : InvalidOperation: (:) [Invoke-Expression], PSInvalidOperationException
      + FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.InvokeExpressionCommand
    

ww40 avatar Sep 13 '17 16:09 ww40

I am getting the same error as ww40

rhoffman303 avatar Mar 14 '18 19:03 rhoffman303

Can you pull it from the gallery, or is that not an option? Another way, you can clone the repo and run .\InstallModule.ps1

dfinke avatar Mar 14 '18 20:03 dfinke

That seems to have worked. Thanks.

On Wed, Mar 14, 2018 at 4:15 PM, Doug Finke [email protected] wrote:

Can you pull it from the gallery, or is that not an option? Another way, you can clone the repo and run .\InstallModule.ps1

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dfinke/ImportExcel/issues/213#issuecomment-373159679, or mute the thread https://github.com/notifications/unsubscribe-auth/AjpOJE30f1a89bo23zJEJp_azv_fETUIks5teXpwgaJpZM4PWZo_ .

rhoffman303 avatar Mar 16 '18 18:03 rhoffman303