Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2006
    Posts
    3

    Huh? Problem with Dialog.Message

    This is my code:

    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

  2. #2
    Join Date
    Nov 2005
    Posts
    27
    try this:
    Code:
    Dialog.Message("Fatal Error", SessionVar.Expand("%ProductName%").." Executable not found. Setup will abort."), MB_OK, MB_ICONSTOP, MB_DEFBUTTON1)

  3. #3
    Join Date
    Feb 2006
    Posts
    3

    Huh? Problem with Dialog.Message

    This doesn´t work neither!

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

    Preview:

    Preview.jpg

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

    Can anyone help me,

    Black_Scorpion

  4. #4
    Join Date
    Sep 2004
    Posts
    60
    What version of SF do you have? Your code works fine here.

  5. #5
    Join Date
    Feb 2006
    Posts
    3

    Oops Problem with Dialog.Message

    I have Setup Factory 7.0.4, but maybe it is a problem with my OS!

    Thanks for your help...

  6. #6
    Join Date
    Sep 2004
    Posts
    60
    Just for grins try replacing MB_ICONSTOP with 16 and see what happens

Similar Threads

  1. Problem with Dialog.Message
    By parallon in forum Setup Factory 7.0
    Replies: 4
    Last Post: 02-14-2005, 10:42 AM
  2. Video Problem
    By ScottDuncan in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 07-10-2004, 01:38 PM
  3. PROBLEM: Setup Starts and then Crashes
    By Support in forum Setup Factory 5.0
    Replies: 0
    Last Post: 10-15-2002, 03:02 PM
  4. PROBLEM: Setup Requests Disk 2 in a Single File Setup
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-09-2002, 02:04 PM
  5. INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 08:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts