Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4

Thread: Read me file

  1. #1
    Join Date
    Mar 2005
    Location
    Wildomar California
    Posts
    17

    Read me file

    Hi everyone,

    I tried to find a thread with this topic and was unsuccessful. I am a newbie to this forum and to Setup Factory.

    What i am trying to do is add a dialog (Ithink) after installation that will ask the user if they would like to view the readme file. And if he picks yes, then launch it. The user manula and help, show some examples but not how and where I should put them.

    Any help would be greatly appreciated, and I apologize if I am asking a dumb question.

    Mike

  2. #2
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    You may be better off using a "checkbox" screen to accomplish this task. regardless here is a script that should get you started for the dialog type:

    Code:
    result = Dialog.Message("Notice", "Would you like to read the file", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1);
    if result == IDYES then
    File.Open("C:\\file.ext", "", SW_SHOWNORMAL)
    else
    -- do nothing or perhaps do something else
    end
    Adam Kapilik

  3. #3
    Join Date
    Jan 2002
    Location
    Nashville TN
    Posts
    328

    d

    IT could look something like this.

    resultYN = Dialog.Message("Read Me", "Would you like to Read the read me file?", MB_YESNO, MB_ICONQUESTION, MB_DEFBUTTON1) --Display Dialog I picked Yes/No Dialog other might work too
    if resultYN == 6 then --6 is the return for Clicking YEs
    Shell.Execute(_SourceFolder.."\\readme.txt", "open", "", _SourceFolder, SW_SHOWNORMAL) --Open a file
    end

    Also you could use Elseif to do another test to no another action.

  4. #4
    Join Date
    Mar 2005
    Location
    Wildomar California
    Posts
    17

    Thank you

    Thanks guys that helped alot.

Similar Threads

  1. Audio Tracks Project
    By Michael in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 03-18-2004, 10:58 PM
  2. Add "Read File Attributes" to "Read File Information"
    By Marker0077 in forum Setup Factory 6.0
    Replies: 1
    Last Post: 07-08-2003, 09:05 AM
  3. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM
  4. Can search allow manual browse even if file is found?
    By RichardShaw in forum Setup Factory 5.0
    Replies: 2
    Last Post: 08-28-2000, 06:08 PM
  5. Replies: 0
    Last Post: 08-17-2000, 02:29 PM

Posting Permissions

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