samedi 26 novembre 2016

Powershell as much checkboxes as a collection

With PowerShell, I made a form with three tabs. In one of them, I would have several checkboxes, and each one would be named by a collection of programs listed in the registry.

$Prog = Get-Item -Path "HKCU:\Software\MySoftware\EXE_list\"
$Programs = $Prog.property

I know how to make checkboxes. But from machine to an other, I won't have the same quantity of programs listed. So it could be up to 20 checkboxes.

So is there a way to do create checkboxes dynamically?

Thanks.




Aucun commentaire:

Enregistrer un commentaire