Old 9th December 2005, 17:05   #1
AndyM
Guest
 
Posts: n/a
"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
  Reply With Quote
Old 9th December 2005, 17:36   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Second question answer:
http://forums.winamp.com/showthread....69#post1821600
(a few topics down)

-Stu
Afrow UK is offline   Reply With Quote
Old 9th December 2005, 18:21   #3
AndyM
Guest
 
Posts: n/a
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
  Reply With Quote
Old 9th December 2005, 18:57   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Old 9th December 2005, 19:04   #5
AndyM
Guest
 
Posts: n/a
Quote:
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
  Reply With Quote
Old 10th December 2005, 05:54   #6
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
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.
Takhir is offline   Reply With Quote
Old 12th December 2005, 01:40   #7
AndyM
Junior Member
 
AndyM's Avatar
 
Join Date: Dec 2005
Location: Canada
Posts: 18
[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
AndyM is offline   Reply With Quote
Old 19th December 2005, 16:45   #8
AndyM
Junior Member
 
AndyM's Avatar
 
Join Date: Dec 2005
Location: Canada
Posts: 18
[Bump]

Anyone have any thoughts on either issue?

Thanks.

- Andy
AndyM is offline   Reply With Quote
Old 20th December 2005, 17:32   #9
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 20th December 2005, 20:44   #10
AndyM
Junior Member
 
AndyM's Avatar
 
Join Date: Dec 2005
Location: Canada
Posts: 18
Quote:
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
AndyM is offline   Reply With Quote
Old 23rd December 2005, 10:59   #11
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 23rd December 2005, 11:47   #12
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Attached Files
File Type: zip folderbrowsertest.zip (4.3 KB, 499 views)
Afrow UK is offline   Reply With Quote
Old 23rd December 2005, 14:21   #13
AndyM
Junior Member
 
AndyM's Avatar
 
Join Date: Dec 2005
Location: Canada
Posts: 18
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
AndyM is offline   Reply With Quote
Old 23rd December 2005, 14:39   #14
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Have you got MS .NET Framework installed?
http://www.microsoft.com/downloads/d...displaylang=en

-Stu
Afrow UK is offline   Reply With Quote
Old 23rd December 2005, 14:47   #15
AndyM
Junior Member
 
AndyM's Avatar
 
Join Date: Dec 2005
Location: Canada
Posts: 18
Quote:
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
AndyM is offline   Reply With Quote
Old 23rd December 2005, 14:52   #16
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Old 23rd December 2005, 14:56   #17
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 23rd December 2005, 15:39   #18
AndyM
Junior Member
 
AndyM's Avatar
 
Join Date: Dec 2005
Location: Canada
Posts: 18
Quote:
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
AndyM is offline   Reply With Quote
Old 23rd December 2005, 17:08   #19
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Then it's probably the SHGetPathFromIDList call. The attached example should trigger the error message.
Attached Files
File Type: zip browse.zip (10.9 KB, 504 views)

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 23rd December 2005, 21:33   #20
AndyM
Junior Member
 
AndyM's Avatar
 
Join Date: Dec 2005
Location: Canada
Posts: 18
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
AndyM is offline   Reply With Quote
Old 31st December 2005, 22:20   #21
AndyM
Junior Member
 
AndyM's Avatar
 
Join Date: Dec 2005
Location: Canada
Posts: 18
kichik - Yep - that test reproduces my problem.

- Andy
AndyM is offline   Reply With Quote
Old 3rd January 2006, 18:29   #22
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Great. Now lets see if SetErrorMode makes it go away.
Attached Files
File Type: zip browse.zip (11.0 KB, 493 views)

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 3rd January 2006, 18:52   #23
AndyM
Junior Member
 
AndyM's Avatar
 
Join Date: Dec 2005
Location: Canada
Posts: 18
Thumbs down

Nope - that didn't fix it.

- Andy
AndyM is offline   Reply With Quote
Old 3rd January 2006, 19:07   #24
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
That's weird. I'm afraid there's nothing more I can do. SetErrorMode usually suffices. Did you try another driver?

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 3rd January 2006, 19:17   #25
AndyM
Junior Member
 
AndyM's Avatar
 
Join Date: Dec 2005
Location: Canada
Posts: 18
OK. Thanks for the help. I will try to find a new driver.

- Andy
AndyM is offline   Reply With Quote
Old 4th January 2006, 18:49   #26
AndyM
Junior Member
 
AndyM's Avatar
 
Join Date: Dec 2005
Location: Canada
Posts: 18
FWIW I updated to the latest Iomega drivers and I still have the problem.

- Andy
AndyM is offline   Reply With Quote
Old 5th January 2006, 16:50   #27
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Maybe it's some background program?

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 6th January 2006, 16:11   #28
AndyM
Junior Member
 
AndyM's Avatar
 
Join Date: Dec 2005
Location: Canada
Posts: 18
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
AndyM is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump