Archive: "no disk" browse problem


"no disk" browse problem
Hello. I am getting this error message when I click the 'Browse' button on a MUI_PAGE_DIRECTORY page:

"There is no disk in the drive. Please insert into drive \Device\Harddisk1\DR1."

It keeps popping up over and over again whenever D: is in the view.

- NSIS 2.11 on Windows 2000
- I have searched the forum and FAQ and cannot find a solution
- I have a ZIP drive installed, but haven't used it in years
- I have not had this problem with other Windows programs - only my installer
- I am not a 'native Windows' developer or user - maybe I don't understand something about Windows and users are used to this annoyance?

Secondary question: How do I change the text "Select the folder to install NNN in:" in the browse window?

Thank you for your help!

- Andy


Second question answer:
http://forums.winamp.com/showthread....69#post1821600
(a few topics down)

-Stu


Hey - thanks for the quick response. I tried this:

DirText "" "" "" "Select a directory for your projects."

And that worked great - except that it changed both MUI_PAGE_DIRECTORY pages. How do I make it change just on my second MUI_PAGE_DIRECTORY page?

Thanks!

- Andy


Oh sorry, I thought you meant for a custom InstallOptions page.
To change that text, I think you use !define MUI_DIRECTORYPAGE_TEXT_DESTINATION before each !insertmacro MUI_PAGE_DIRECTORY.

-Stu


To change that text, I think you use !define MUI_DIRECTORYPAGE_TEXT_DESTINATION before each !insertmacro MUI_PAGE_DIRECTORY.
No - that changes the name of the frame around the path and browse button...

The previous solution would work if there were a way to set/save state of the DirText, but I don't think that can be done...

- Andy

First question may come from not existing default installation folder (wrong registry value or script default, 4.8.1.21 and 22 of Manual). You can check this using IfFileExists in the dir's page show function.


[Now that I have the registration thing sorted, I can reply...]

Takhir,

Thanks for the response. The directory definitely exists. I created the installer using EclipseNSIS and modified it for my project. I've checked the default dir and everything looks in order.

- Andy


[Bump]

Anyone have any thoughts on either issue?

Thanks.

- Andy


Do you get that only with your installer? Does it happen with the NSIS paclage installer? Maybe it's some broken shell link that the browse dialog shows... If not, attach the script, not much can be said without it.


Originally posted by kichik
Does it happen with the NSIS package installer?
Yes it happens with the NSIS installer as well. If I click Browse it comes up with C: open which takes up the whole viewing area. If I then scroll down, right when it's about to display the D: drive it starts giving me that error. I can click 'Cancel' to make it go away, but then whenever I move the scroll bar it comes up again if D: is visible in the viewing area.

- Andy

Does it happen with browse dialogs in other applications? I could call SetErrorMode to suppress the message, but I don't think that'd be the right thing to do in this case. Seems to me like something is wrong on your machine. Is the ZIP drive on D:? I have a ZIP drive, and I don't get this message when browsing for a folder. Maybe there's a driver problem that interferes with the detection of an inserted ZIP disk and causes this error.


Try this. Just a small VB.NET app that will show a folder browse dialog and catch any errors made in a message box.

-Stu


Thanks for the replies.

kichik - It does not happen in other browse dialogs that I can find. I've tried several installers and it seems like only the NSIS ones are choking. I really only use a handful of apps and haven't seen it within any of those either.

The ZIP drive is D: and I only started seeing this when I started with NSIS. It is certainly possible that it's a driver issue, although I have everything as up-to-date as possible.

Afrow UK - After finding and dowloading mscoree.dll [is this a .NET thing? - don't have it], I get the following when I run the program:

"The Application failed to initialize properly (0xc0000022)..."

Thanks guys. If it's just me with the problem then that's OK. I would just hate to have a customer get this if it's a more general problem.

Happy Hanukkah/Happy Kwanzaa/Merry Christmas/Festive Festivus!

- Andy


Have you got MS .NET Framework installed?
http://www.microsoft.com/downloads/d...displaylang=en

-Stu


Originally posted by Afrow UK
Have you got MS .NET Framework installed?
No I don't. [And I don't really want to...]

Is it possible to build the test app without it?

- Andy

No because it is written in VB.NET as I have already said.
You'll have to install it one day anyway because a hell of a lot of people are writing VB.NET, C# and C/C++ 7

-Stu


For the purpose of this simple test, you can run drwtsn32.exe and click on the first browse button. It uses the directory browsing dialog.

Even better, the Windows file find dialog has a browse button which uses the same method as well.


Originally posted by Afrow UK
No because it is written in VB.NET as I have already said.
You'll have to install it one day anyway because a hell of a lot of people are writing VB.NET, C# and C/C++ 7
Sorry - I obviously wasn't paying attention. I don't expect to have to install .NET stuff because I use the machine for only one thing: compiling/testing our Windows 2000 app.

kichik - the Windows find Browse dialog does not give me this error. I used "Search for Files or Folders..." and Look in: Browse. No problemo.

- Andy

Then it's probably the SHGetPathFromIDList call. The attached example should trigger the error message.


kichik - I'm away from my PC for the next week or so. I will try it when I get back and let you know!

Thanks for the help.

- Andy


kichik - Yep - that test reproduces my problem.

- Andy


Great. Now lets see if SetErrorMode makes it go away.


Nope - that didn't fix it.

- Andy


That's weird. I'm afraid there's nothing more I can do. SetErrorMode usually suffices. Did you try another driver?


OK. Thanks for the help. I will try to find a new driver.

- Andy


FWIW I updated to the latest Iomega drivers and I still have the problem.

- Andy


Maybe it's some background program?


I have a very simple setup. I have no idea how to track this down [remember I'm not a Windows guy :-)]. If I ever figure it out or it "Just Goes Away"(tm), I'll let you know here.

Thanks again.

- Andy