Open clmcgrath opened 6 years ago
This isn't using the executable at all, it's using the PowerShell hosting API built into Windows.
An update to this might be to switch to PowerShell 7+ and include the bytes in the package, so it doesn't rely on the version of PowerShell that's on the box at all.
I want to host powershell core portable in an installer/deployment tool I am writing the idea here is that when we ship our application packages we don't want to have to muddle around with installing dependencies on our clients servers and would like to provide the option to ship powershell core with our product for clients that may not have this installed on their servers
Is it possible to somehow set the hosted powershell version or set the powershell executable path or should i enter powershell core by executing this directly via script via onload (would prefer to avoid this)
EDIT: apprently the second option doesn't work as i expected it would