PowerShell / ConsoleGuiTools

Modules that mix PowerShell and GUIs/CUIs!
https://www.powershellgallery.com/packages/Microsoft.PowerShell.ConsoleGuiTools
MIT License
776 stars 59 forks source link

Question: how to check if installed? #180

Closed dcnieho closed 1 year ago

dcnieho commented 1 year ago

Summary of the new feature / enhancement

How to efficiently check whether ` is available? I now useGet-InstalledModule Microsoft.PowerShell.ConsoleGuiTools -ErrorAction SilentlyContinuein my$PROFILE`, but that takes about 1.5 s to execute.

Proposed technical implementation details (optional)

No response

MrFly72 commented 1 year ago

Why not do a: Get-Command Out-ConsoleGridView -ErrorAction SilentlyContinue If it is Null, the Tool is not installed.

tig commented 1 year ago

Closing as answered.