Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2005
    Posts
    3

    Unable to Launch Adobe Reader Setup.

    Hi ,

    I am currently using Autoplay 5 to create a CD Wrapper for my product. I am facing a peculiar issue in launching the Adode Reader setup from the CD Wrapper. I use the below script to launch the setup process.

    Paragraph.SetVisible("BatchDocDefault", false);
    Paragraph.SetVisible("AcrobatRollOver", true);
    -- Disply message to close auto play menu and install adobe acrobat
    RetVal = Dialog.Message(ProductName, ADOBE_MSG, MB_YESNO, MB_ICONEXCLAMATION, MB_DEFBUTTON1);
    if IDYES == RetVal then
    Application.Exit();
    File.Run("Redist\\Adobe\\Acrobat7\\AdbeRdr70_enu_f ull.exe", "", "", SW_SHOWNORMAL, false);
    end

    The Above script runs fine in our environment and the adobe setup launches, but in our customer environment when the Adobe message is displayed to close the current windows it closes and the Adobe setup is not launched.

    Any thoughts on this issue is highly appreciated.

    Regards
    -Venkat

  2. #2
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Code:
    Paragraph.SetVisible("BatchDocDefault", false);
    Paragraph.SetVisible("AcrobatRollOver", true);
    -- Disply message to close auto play menu and install adobe acrobat
    RetVal = Dialog.Message(ProductName, ADOBE_MSG, MB_YESNO, MB_ICONEXCLAMATION, MB_DEFBUTTON1);
    if RetVal == IDYES then -- I changed this around for you
    Application.Exit();
    File.Run("Redist\\Adobe\\Acrobat7\\AdbeRdr70_enu_full.exe", "", "", SW_SHOWNORMAL, false);
    end
    You had some of the code transposed (see: what's in bold)
    Intrigued

  3. #3
    Join Date
    Aug 2003
    Posts
    2,427
    Apart from the error pointed out by Intrigued, I've recently had to change a couple lines of code around in a project in order to get it to run reliably. Initially, after a test result was true I used-

    Application.Exit()
    File.Open etc etc


    It didn't work so I changed the order to -

    File.Open etc etc
    Application.Exit()


    and now it's completely reliable. I note that you have the same order of execution.

    If I remember correctly there was a change a little while back so that loops and if statements didn't automatically run to conclusion.

  4. #4
    Join Date
    Apr 2005
    Posts
    3

    Thanks

    Hi Intrigued&longedge,

    Thanks for the help it worked at my customer site.

    Regards
    -Venkat

  5. #5
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    That's what counts! Glad to hear it.

    Intrigued

Similar Threads

  1. New Features in Setup Factory 7.0
    By Ted Sullivan in forum Setup Factory 7.0
    Replies: 0
    Last Post: 08-12-2004, 12:13 PM
  2. Running Adobe Acrobat Reader Directly from the CD-ROM
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 09:22 AM
  3. FAQ: Setup Factory 5.0 Frequently Asked Questions
    By Support in forum Setup Factory 5.0
    Replies: 0
    Last Post: 10-10-2002, 09:50 AM
  4. HOWTO: Build a Setup from the Command Line
    By Support in forum Setup Factory 5.0
    Replies: 0
    Last Post: 10-08-2002, 01:43 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