kenhepworth
13 years agoOccasional Contributor
Unable to run .msi file
Hi,
I am attempting to run an msi file that is located on another machine, but I just don't seem to be able to run it. I run a .exe file from the same directory without any problems. It adds the application to the tested applications list, but does not want to follow on. I have also made sure that I have started TestComplete as an administrator as suggested, but still to no avail. Any advice here would be helpful. Below are the details to my issue.
I am getting the following message:
Possible reasons:
- TestComplete is running without administrator privileges.
- The command-line arguments specified for the application are invalid:
[n\a]
- The working folder path is unavailable or does not exist:
\\stc1\customerdata\Generic 8.0\Latest Build\Setups\Latest
Here is the script that I execute in vbscript
Install()
I am attempting to run an msi file that is located on another machine, but I just don't seem to be able to run it. I run a .exe file from the same directory without any problems. It adds the application to the tested applications list, but does not want to follow on. I have also made sure that I have started TestComplete as an administrator as suggested, but still to no avail. Any advice here would be helpful. Below are the details to my issue.
I am getting the following message:
Possible reasons:
- TestComplete is running without administrator privileges.
- The command-line arguments specified for the application are invalid:
[n\a]
- The working folder path is unavailable or does not exist:
\\stc1\customerdata\Generic 8.0\Latest Build\Setups\Latest
Here is the script that I execute in vbscript
Sub Install()
Install()
Set foundFiles = aqFileSystem.FindFiles("\\stc1\customerdata\Generic 8.0\Latest Build\Setups\Latest\", "XXXXXXXXX(8.*).msi")
If Not foundFiles Is Nothing Then
While foundFiles.HasNext
Set aFile = foundFiles.Next
Wend
End If
Dim FullPath, TestApp, TestAppIndex
FullPath = afile.path
' Adds the application to the collection of tested applications
TestAppIndex = TestedApps.Add(FullPath)
Log.Message("A new application has been added to the list of tested applications with the index " & TestAppIndex)
' Obtains the new tested application and changes its parameters
Set TestApp = TestedApps.Items(TestAppIndex)
' Launches the application
TestApp.Run
End Sub