Unable to Launch Adobe Reader Setup.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • venkatramanj
    Forum Member
    • Apr 2005
    • 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
  • Intrigued
    Indigo Rose Customer
    • Dec 2003
    • 6125

    #2
    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 [B]RetVal == IDYES[/B] then [COLOR=DarkGreen]-- I changed this around for you[/COLOR]
    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

    Comment

    • longedge
      Indigo Rose Customer
      • Aug 2003
      • 2496

      #3
      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.

      Comment

      • venkatramanj
        Forum Member
        • Apr 2005
        • 3

        #4
        Thanks

        Hi Intrigued&longedge,

        Thanks for the help it worked at my customer site.

        Regards
        -Venkat

        Comment

        • Intrigued
          Indigo Rose Customer
          • Dec 2003
          • 6125

          #5
          That's what counts! Glad to hear it.

          :yes
          Intrigued

          Comment

          Working...
          X