Archive: Select a drive only


Select a drive only
Is it possible? I use MUI_PAGE_DIRECTORY Page to define the directory my program has to be installed to. But I would like to restrict the range of possible selections to the drives of the current computer. So, I want my program to be installed in the root directory only. Can I manage this with NSIS?

BR
Ewgenij


I guess you'd have one of three options:

1. Create a custom page with drive letters in a dropdown (or something similar)

2. Use the standard directory page and the .onDirVerify function to verify the path and not let the user click "next" if the path is more than the root drive.

3. Use the page leave function on the standard directory page and stop the user from moving forward unless they pick just the root drive