Ask a Question

Run testedApp for msi - wait till the msi has been completed

SOLVED
simonaferrara
Frequent 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

 

 

 

1 REPLY 1
AlexKaras
Community Hero

Hi Simona,

 

What if you try WshShell.Run() ?

E.g.:

Return = WshShell.Run("msiexec /i /quiet " + msiFileName, 0, true);

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
cancel
Showing results for 
Search instead for 
Did you mean: