Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Crash on INSTALLOPTIONS_INITDIALOG (http://forums.winamp.com/showthread.php?t=306530)

TobbeSweden 19th May 2009 08:41

Crash on INSTALLOPTIONS_INITDIALOG
 
I have this code in my installer:
code:
MessageBox MB_OK "$PLUGINSDIR\ioPreReq.ini"

!insertmacro INSTALLOPTIONS_INITDIALOG "ioPreReq.ini"

MessageBox MB_OK "Test 5"


A user tells me he sees the pluginsdir message box, but after that the installer quits before he sees the "Test 5" message box.

His ioPreReq.ini file looks like this:
code:
[Settings]
NumFields=12
RTL=0

[Field 1]
Type=Bitmap
Left=13
Top=17
Right=32
Bottom=36
Text=C:\Users\1234\AppData\Local\Temp\nss1813.tmp\check.bmp
Flags=TRANSPARENT

[Field 2]
Type=Label
Left=32
Top=20
Right=131
Bottom=39
Text=Internet Explorer 4 or greater

[Field 4]
Type=Label
Left=160
Top=21
Right=293
Bottom=38
Text=Visual C++ 8 (2005) DLLs

[Field 3]
Type=Bitmap
Left=141
Top=17
Right=160
Bottom=36
Flags=TRANSPARENT
Text=C:\Users\1234\AppData\Local\Temp\nss1813.tmp\check.bmp


[Field 5]
Type=Label
Left=1
Top=1
Right=299
Bottom=17
Text=The following items needs to be installed on your system before you can install LOSI 0.4.5

[Field 6]
Type=Label
Left=1
Top=47
Right=299
Bottom=74
Text=The following items are not needed but they are recomended. If you don't have them it's recomended to install them. This can be done after you have installed LOSI 0.4.5

[Field 7]
Type=Bitmap
Left=13
Top=74
Right=32
Bottom=93
Text=C:\Users\1234\AppData\Local\Temp\nss1813.tmp\check.bmp
Flags=TRANSPARENT

[Field 8]
Type=Bitmap
Left=141
Top=74
Right=160
Bottom=93
Flags=TRANSPARENT
Text=C:\Users\1234\AppData\Local\Temp\nss1813.tmp\check.bmp

[Field 9]
Type=Label
Left=32
Top=76
Right=137
Bottom=92
Text=Visual C++ 8 (2005) SP1 DLLs

[Field 10]
Type=Label
Left=160
Top=76
Right=293
Bottom=92
Text=Visual C++ 9 (2008) DLLs

[Field 11]
Type=Label
Left=1
Top=122
Right=247
Bottom=132
Text=Find download links to anything you might be missing at:

[Field 12]
Type=Link
Left=1
Top=132
Right=181
Bottom=141
Text=http://tlundberg.com/LOSI/prereq.html
State=http://tlundberg.com/LOSI/prereq.html



The check.bmp file exists.

He's running Vista home premium, 32bit.

What could be causing the quit/crash?

kichik 19th May 2009 11:18

What's the context where you are running that code? Is it in a section or a page function? Dialogs must used in the context of a custom page function.

TobbeSweden 19th May 2009 17:37

Yeah, it's a custom page function. The code works for me on both XP and Win7

kichik 19th May 2009 21:48

Well, if you're sure the script itself is not at fault, try removing field by field.

TobbeSweden 19th May 2009 21:58

I'm not sure of anything, but thanks, I'll try that :)


All times are GMT. The time now is 18:05.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.