Archive: Crash on INSTALLOPTIONS_INITDIALOG


Crash on INSTALLOPTIONS_INITDIALOG
I have this code in my installer:

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:
[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?

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.


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


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


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