aaronpowell / ps-nvm

PowerShell module for managing multiple Node.js versions
MIT License
127 stars 26 forks source link

Import into Azure Run Books #80

Open samkarnati opened 5 years ago

samkarnati commented 5 years ago

Hello,

First of all, thanks for providing this in the Powershell gallery. I really appreciate it.

I was able to import into Azure Automation using Powershell gallery. But, when i try to use in Azure Run books(powershell) to install a particular version, i get the following error.

"The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: The term 'msiexec' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."

Any help is really appreciated.

Thanks Sam

aaronpowell commented 5 years ago

I've never tried this in Azure Run Books...

The problem you're hitting is that the tool for installing an MSI, msiexec doesn't exist on the target machine.

Given PowerShell has a built-in unzip API it might be possible to move to that rather than using msiexec. If you wanted to send a PR for that I'd be appreciative. 😊

samkarnati commented 5 years ago

Thanks aaron for the response. Really appreciate it.

When ever i get a chance, i will send a PR.

-Sam