Forum Discussion
valentine
14 years agoContributor
Hi Allen ,
I have added that code snippet to a method:
I have added that code snippet to a method:
function RunCmdPrompt(whatToRun){
1. var WShell = Sys.OleObject("WScript.Shell");
2. WShell.Run(whatToRun);
3. Delay(5000);
4. return;
}
--> The issue is when I call this method with the "<file.msi>", it stops short at line 2, after the msi file is open.
So I can't seem to proceed with TestComplete to read the 'installation window'.
...
RunCmdPrompt(themsiFileName);
p1 = Sys.WaitProcess("msiexec",20000);
if(p1.Exists){
...