Forum Discussion
Dmitry_Nikolaev
Staff
14 years ago
Hi Ofer,
This error appears, because your MSI file cannot be found. You should check whether the specified MSI file exists. Try using the sample code given below:
User = Sys["UserName"]
var MSIpath = "C:\\Users\\" + User + "\\Downloads\\xxx.msi";
//Checks whether the specified file exists
Log.Message(MSIpath);
if (! aqFileSystem.Exists(MSIpath)) {
Log.Message("File " + MSIpath + " is not exist!");
return;
}
if(TestedApps.Find("msiexec.exe") == -1) {
TestedApps.Add(msiexec.exe, "/i " + MSIpath);
}
TestedApps.msiexec.Run(-1, true);
If this does not help, please post here the actual path to the MSI file.