Braveshun
Posts: 1
Joined: Thu Jun 12, 2025 7:42 am

Scan computer disk directory and display it in combobox

I want to use PowerShell to scan all available disks in the user's computer during installation, and display these disks in a combobox for the user to choose the installation disk. The user can only select the disk and cannot select the directory behind the disk. I have tried for a long time but still cannot achieve it. Can anyone help me?
Catalin
Posts: 7794
Joined: Wed Jun 13, 2018 7:49 am

Re: Scan computer disk directory and display it in combobox

Hello and welcome to our forums,

Please have a look over the following article which describes exactly what you want to achieve:

Populate CheckList / ComboBox / ListBox controls with values received from a custom script

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”