scully13
6th April 2004 16:23 UTC
Hang using InstallOptions for custom page
I'm experiencing a hang when my installer hits a custom page I've added in. My script first checks to see if a URL is appended to the end of the installer. If it isn't there I want the enter a URL dialog should show up. It doesn't hang if I've inserted the URL at the end of the installer but it does if it isn't there. I've attached my shortened test script and the custom page InstallOptions INI file. I also found a InstallOptions.dll with some debug stuff in it so I ran it with that and used DebugView to capture those results. I included the LOG of that in the zip also. I'm sure this is something I'm doing wrong but I'm not seeing it.
Joost Verburg
6th April 2004 17:09 UTC
There is probably and endless loop somewhere.
scully13
6th April 2004 19:04 UTC
I thought that too but if I put message boxes in to test my values and to see how far it's getting it doesn't hang for some reason.
Joost Verburg
6th April 2004 19:07 UTC
Test the INI file using a simple script without any other code.
scully13
6th April 2004 21:15 UTC
The INI file by itself always worked fine but when I had all the other code it would hang. Like I said before with message boxes it ran fine so that makes it really hard to debug. So, I ended up replacing GetFirstStrPart and Trim with StrStr and TrimNewlines. I had to change some code in my custom function CustomPageEnterURL but now it seems fine. I got all of those other functions from the Useful Functions archive so I doubt they are bad. I must have just been doing something weird. Thanks for the help again.
crisp
8th April 2004 12:17 UTC
Hello.
I have the same problem with Banner::show and Banner::distroy.
Sometimes the installer hangs at banner:distroy. If I put a message between sho and distroy it's not hanging anymore.
I wanted to post some code in the forum, but because I could not reproduce it in a small example, I've prefered to just put a 'stupid' info message to get rid of the banner and go on with the flow of the installer.
I thougth that this is a banner issue but it seems not.
Maybe I will find some time to redesign the script. I'm sure that if I will start from scratch I will not have this problem anymore.
If I will reproduce it in another script I will post the code here.
Anyway, maybe somebody has a clue about this.
Joost Verburg
8th April 2004 13:20 UTC
This problem is not related to this topic. If you can reproduce it please attach a script.