PDA

View Full Version : Problem with Dialog.Message


BScorpion
02-21-2006, 05:18 PM
This is my code:

if not File.DoesExist(SessionVar.Expand("%AppFolder%\\App.exe")) then
Dialog.Message("Fatal Error", SessionVar.Expand("%ProductName% Executable not found. Setup will abort."), MB_OK, MB_ICONSTOP, MB_DEFBUTTON1)
Application.Exit()
end

When i used this code, i expected that if the file wasn´t found, should be displayed an error message with the Stop icon (X).
But instead, when the file isn´t found, is shown a Message with the Information icon (i).

Does anyone know why this is happening? I would appreciate some help, please...

Thanks,

Black_Scorpion

ineb
02-22-2006, 01:38 AM
try this:
Dialog.Message("Fatal Error", SessionVar.Expand("%ProductName%").." Executable not found. Setup will abort."), MB_OK, MB_ICONSTOP, MB_DEFBUTTON1)

BScorpion
02-22-2006, 08:09 AM
This doesn´t work neither! :huh

I know the code is correct but i don´t know if it is some Setup Factory´s Bug!

Preview:

3090

This is displayed but i wanted to display the Error (X) icon...

Can anyone help me,

Black_Scorpion

Absynthe
02-22-2006, 09:38 PM
What version of SF do you have? Your code works fine here.

BScorpion
02-23-2006, 07:26 AM
I have Setup Factory 7.0.4, but maybe it is a problem with my OS! :huh

Thanks for your help... ;)

Absynthe
02-23-2006, 05:12 PM
Just for grins try replacing MB_ICONSTOP with 16 and see what happens