![]() |
#1 |
Junior Member
Join Date: Feb 2012
Posts: 15
|
How to detect flash drive
Hi,
I want to detect a USB flash drive once the user connect it. It should look like this: code: I hope you have some ideas, Thanks! |
![]() |
![]() |
![]() |
#2 |
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
See this recent thread: http://forums.winamp.com/showthread.php?t=341152
|
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Feb 2012
Posts: 15
|
Thanks! It works
![]() |
![]() |
![]() |
![]() |
#4 |
Junior Member
Join Date: Feb 2012
Posts: 15
|
Now first of all my custom function search the flash drive and then I can see text/label/image and so on...
But i want it the other way round... How can I do this? code: Thanks |
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Feb 2012
Posts: 15
|
Hmm, perhaps I should attach some images.
While searching the flash drive I can't see the images/labels (see attachments). But I want that you can see the page with all components first, and after that the installer should search the flash drive. I hope you understand what I mean, please help |
![]() |
![]() |
![]() |
#6 |
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Once you do nsDialogs::Show, the installer will wait until the Next button is pressed (or any other button which has a callback function defined). The installer cannot wait for two things at the same time (Next button and flash drive). So you'll need to do the flashdrive search in the page's leave function. The page would then say "please insert the flash drive and click Next to continue". If in the leave function no drive is found, call abort and the installer will stay on the 'please insert' page.
|
![]() |
![]() |
![]() |
#7 | |
Junior Member
Join Date: Feb 2012
Posts: 15
|
Thanks MSG! That's a good idea, but I've one problem:
Quote:
Can I copy the flashdrive search after nsDialogs::Show ${NSD_FreeImage} $Image and make so my own customFunction leave? code: I can see the MessageBox, but when I click on "No", I'm on the next page anyway... |
|
![]() |
![]() |
![]() |
#8 |
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
|
![]() |
![]() |
![]() |
#9 |
Junior Member
Join Date: Feb 2012
Posts: 15
|
Thanks again MSG!!!
My problem is solved ![]() |
![]() |
![]() |
![]() |
|
Tags |
detect, flash drive, usb |
Thread Tools | Search this Thread |
Display Modes | |
|
|