simonaferrara
4 years agoFrequent Contributor
Run testedApp for msi - wait till the msi has been completed
Hi,
I have to install an msi; I'm trying to simply do it by using the testedApps, but I'm not finding a way to wait that the msi is finished the installation.
The Run method doesn't wait that the tested app has finished the execution; in my case, the installation is finished when the msiexec process is terminated. How can I wait till the msi is finished?
This is my actual code:
let msiPath = "C:\\xxx\\";
let msiFileName = "xxx.msi";
function executeInstallationMsi()
{
TestedApps.Installation.Path = msiPath;
TestedApps.Installation.FileName = msiFileName;
TestedApps.Installation.Run();
}
Thanks
Simona
Hi Simona,
What if you try WshShell.Run() ?
E.g.:
Return = WshShell.Run("msiexec /i /quiet " + msiFileName, 0, true);