Old 19th May 2009, 08:41   #1
TobbeSweden
Senior Member
 
Join Date: Oct 2006
Posts: 106
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?
TobbeSweden is offline   Reply With Quote
Old 19th May 2009, 11:18   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

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 19th May 2009, 17:37   #3
TobbeSweden
Senior Member
 
Join Date: Oct 2006
Posts: 106
Yeah, it's a custom page function. The code works for me on both XP and Win7
TobbeSweden is offline   Reply With Quote
Old 19th May 2009, 21:48   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Well, if you're sure the script itself is not at fault, try removing field by field.

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 19th May 2009, 21:58   #5
TobbeSweden
Senior Member
 
Join Date: Oct 2006
Posts: 106
I'm not sure of anything, but thanks, I'll try that
TobbeSweden 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