mpstrong
13 years agoNew Contributor
Running ClickOnce app
I need to test an application that is distributed as a ClickOnce application. There is a utility script on this web site that I have copied and tried to use in my script.
Sub RunClickOnceApplication()
Dim path
path = "C:\U2\SBXA\PresentationComponents\RichClient\SBXAWinFXWindow.application" ' e.g. "c:\Sample ClickOnce\sample.appref-ms"
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run("rundll32.exe dfshim.dll,ShOpenVerbShortcut " & path)
End Sub
The only thing I have changed is to plug in the application path. When I run this subroutine, I get an error and the application does not open. If I double click on this file in Windows Explorer or run the file from the Start->All Programs->Accessories->Run window, it works fine. Any ideas why this won't work from within TestComplete 8.0?
Mike
Sub RunClickOnceApplication()
Dim path
path = "C:\U2\SBXA\PresentationComponents\RichClient\SBXAWinFXWindow.application" ' e.g. "c:\Sample ClickOnce\sample.appref-ms"
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run("rundll32.exe dfshim.dll,ShOpenVerbShortcut " & path)
End Sub
The only thing I have changed is to plug in the application path. When I run this subroutine, I get an error and the application does not open. If I double click on this file in Windows Explorer or run the file from the Start->All Programs->Accessories->Run window, it works fine. Any ideas why this won't work from within TestComplete 8.0?
Mike