Jaykul / PoshConsole

PoshConsole is a WPF control that self-hosts PowerShell, a framework for building PowerShell-based managment apps!
Other
77 stars 18 forks source link

Option to Set Powershell executable path #14

Open clmcgrath opened 6 years ago

clmcgrath commented 6 years ago

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

Jaykul commented 3 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.