PDA

View Full Version : silent install of adobe acrobat reader 5.0 possible?



kevinm
07-23-2002, 01:08 PM
Does anybody know if its possible to have a setup perform a silent install of acrobat reader 5.0?

I thought adobe used installshield professional, but it does not appear that the "/r" and "/s" options work.

LewisQ
07-23-2002, 01:25 PM
From someone who went thru the pain:

- Adobe does use IS but they do have several custom dialogs for which they didn't place SilentReadData() and SilentWriteData() so your attempts to create an iss file will be futile. We noticed that it seems to be by design because all Adobe products "mysteriously" use custom dialogs when there is no need for one and all do not include read/write data.

- One workaround is to use SendKeys(). See this example:



SdShowMsg("Installing Adobe Acrobat Full. DO NOT touch the keyboard or mouse until instructed to do so!", TRUE);
Delay(3);
SdShowMsg("", FALSE);
if LaunchAppAndWait(sTemp ^ "setup.exe", "", NOWAIT) < 0 then
MessageBox("Could not launch Adobe Acrobat installation. Aborting...", SEVERE);
abort;
endif;
set WshShell = CreateObject("WScript.Shell");
Delay(3);

while FindWindow("#32770", "Adobe Acrobat 4.05 Setup") == NULL
Delay(1);
endwhile;
WshShell.SendKeys("{ENTER}");

while FindWindow("#32770", "Select Country") == NULL
Delay(1);
endwhile;
WshShell.SendKeys("{ENTER}");

while FindWindow("#32770", "Software License Agreement") == NULL
Delay(1);
endwhile;
WshShell.SendKeys("{ENTER}");

while FindWindow("#32770", "Adobe Acrobat 4.05 Setup") == NULL
Delay(1);
endwhile;
WshShell.SendKeys("{ENTER}");


This is part of the script we use for the full but shold show you how to do it. You will need Windows Script Host installed prior to runn the setup.