Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 21st January 2003, 18:08   #1
wonko
Junior Member
 
Join Date: Jan 2003
Location: Portland, OR
Posts: 2
Crash using latest CVS nightly and InstallOptions DLL

I've spent the last day or so trying to figure out what's happening here, and I'm not having much luck. At first I experienced this problem with beta 0. I've since upgraded to the January 21st CVS nightly and the problem still exists.

What's happening is this: In my main section, I start by searching for a specific config file on the user's system. If the file is found, I pop up a messagebox asking the user if this is the correct file. If the user clicks "No", I call a function that displays an InstallOptions dialog with a label and a filerequest field.

When the user clicks "Next" after filling in this field, I attempt to validate the data. First I check to see that the field is not empty. Then I check to see that the file exists. If either of these checks fail, a messagebox is displayed and we goto the top of the function again, re-displaying the dialog.

The problem is that after the dialog is redisplayed, clicking "Next" just exits the installer. Kaboom. No errors, no nothing. It just disappears, no matter what the user types in the filerequest field. If the dialog *isn't* redisplayed (i.e., if the user entered a valid filename the first time) then everything works fine.

I've completely run out of ideas for what could be causing this. Could it be a bug?

The script in question is a little long to paste here, but I'd be happy to email it to anyone who thinks they can help. Thanks.
wonko is offline   Reply With Quote
Old 21st January 2003, 18:46   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Are you using it out of a custom page creator funciton? IO was designed to work as a custom page not from within a section or a callback function that is not the custom page callback function.

You can use the MinLen field of IO to make sure the file path is there.

BTW, you can always attach the script if it's too big.

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 21st January 2003, 19:26   #3
wonko
Junior Member
 
Join Date: Jan 2003
Location: Portland, OR
Posts: 2
It looks like you're right. When I use a custom page creator function, it seems to work fine. It'll mean restructuring the logic flow a bit, but if it works, it's worth it.

Thanks.
wonko is offline   Reply With Quote
Reply
Go Back   Winamp 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