RUN setup.exe /Q
This will launch and run setup without user intervention. The following parameters will run Setup in quiet mode with various options:
/Q will run setup with the "Initializing setup..." dialogue box, the progress bar, and the "Setup complete" dialogue box with the OK button at the end of the process.
/QT will run setup without any dialogue boxes.
/QNT will run setup with the "Initializing setup..." dialogue box only.
If you create a Netsetup installation on your server, the first time Setup is run, the setup.exe will create a Setup.stf file in the setup folder in the user's application directory. The second line of this file is datetime stamp, which can be compared to the datetime stamp in the setup.stf file on server. The tenth line of the user's setup.stf file contains the UNC path to where the setup.exe on ther server resides.
If an application is recompiled and the Setup Wizard is re-run, you can have your application open the two files before READ EVENTS is issued, compare the date stamps, display a dialogue box that a new version is available, and run the setup from the server in quiet mode.
After the run command is issued, I return false. My application exists, but the Foxpro Setup continues on its merry way until completion. At that point the user knows enough to re-run the application. The setup.exe copies a fresh version of the setup.inf file to the user's hard drive, keeping everything in synch. Works like a charm each and every time! I hope this benefits the community.
See article Q194572 for more info about running the Foxpro Setup in Quiet mode.