Forum Discussion

simonaferrara's avatar
simonaferrara
Frequent Contributor
3 years ago
Solved

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);

     

1 Reply

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi Simona,

     

    What if you try WshShell.Run() ?

    E.g.:

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