Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Questions on the RUN or ! command.
Message
 
To
12/03/2002 11:21:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00631537
Message ID:
00631555
Views:
22
>hello,
>
>I need to launch a silent install of acrobat reader. Two things happen when I use the run command,
>
>1. The screen flashes with a dos window then starts the installation.
>
>2. My launching program continues to the next command even though the installation of adobe reader is not finished.
>
>Any ideas on how I can start the installation without the dos window and have my launching program wait until the installation is complete.
>
>Thanks,
>
Greg,

I use the WScript.Shell object's Run method in these sort of instances. For example, assuming that the program is setup.exe and it accepts a /q parameter for silent installs
oShell = CREATEOBJECT("WScript.Shell")
oShell.Run("setup.exe /q", 0, .T.)
will cause the setup program to silently execute and the caller to wait until the program closes.

For more information, see the series of articles that Ed Rauh and I wrote on the Windows Script Host, beginning with the first article in September, 2000. It's available in the VFUG newsletters section on-line at www.vfug.org. The Shell was covered in the October issue.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform