Forum Discussion
Ivan,
1. To run installers from the command line, you can use the following code:
Set objShell = Sys.OleObject("WScript.Shell")
objResult = objShell.Run("""C:\My Apps\My App Installer1.exe"" -cmdLineArg1 -cmdLineArg2", 1, True)
For information on parameters of the Run method, see the MSDN library:
http://msdn.microsoft.com/en-us/library/d5fk67ky%28v=VS.85%29.aspx.
2. A possible alternative to the scripting approach above --
* Copy the installation packages of your applications to a folder on a clean system, say, to C:\Temp\Installers.
* On your computer, add installers as tested applications to your TestComplete project and specify the C:\Temp\Installers folder as their path in the tested application settings.
* Now, after you copy the test project and installers to the clean system, you will be able to launch the installations in the same manner as you launch tested applications (TestedApps.Installer.Run).