Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   how to ask user to select a disk drive (http://forums.winamp.com/showthread.php?t=255833)

pinemanhh 20th September 2006 03:45

how to ask user to select a disk drive
 
During my installation I want to show a dialog (or some UI control) to let the user select a disk drive as the installation destination. But this must be a disk drive ONLY and it can't be a directory. The user is presented with all logical disk drives (like D: E:...) but won't be able to drill down. After the user makes the selection, the script gets the selection and continues. Appreciate it if someone can give me some help to write it. Thanks!!

Afrow UK 20th September 2006 11:29

You can create an InstallOptions page.
There's a GetDrives function in FileFunc.nsh

-Stu

pinemanhh 22nd September 2006 02:31

I am really new to NSIS and appreciate your help. I tried the test.nsi script under "Examples" directory and figured out how to show an InstallOptions page (of radiobuttons for instance).

I also tried GetDrives function to get the drives, but I couldn't figure out how to put them tegether because in the example, the contents of the InstallOptions are statically defined in a separate .ini file.

Can you point me to an example file or shed some light on this? Thanks!

Afrow UK 22nd September 2006 10:55

Use MUI_INSTALLOPTIONS_WRITE (or WriteINIStr).

-Stu


All times are GMT. The time now is 04:29.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.