PDA

View Full Version : Unable to Launch Adobe Reader Setup.


venkatramanj
06-01-2005, 12:02 AM
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_full.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
06-01-2005, 12:07 AM
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)

longedge
06-01-2005, 03:15 AM
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.

venkatramanj
06-02-2005, 12:54 AM
Hi Intrigued&longedge,

Thanks for the help it worked at my customer site.

Regards
-Venkat

Intrigued
06-02-2005, 01:34 AM
That's what counts! Glad to hear it.

:yes