Jump to content

Recommended Posts

Hi, i have below code to install ms visual c++ and .NET, while trying to run .exe created from au3 code i am getting error like:

"Runtime Error, R6025 - pure virtual function call."

It seems that my code is causing it but no idea what to change to avid it and finish installation successfuly.

my code below:

 

;vcdredist <--Visual C++
Run($sDrivers & "\vcredist_x86.exe")
;waiting for window to be active
WinWaitActive("Microsoft Visual C++ 2010  x86 Redistributable Setup")
If Not WinActive("Microsoft Visual C++ 2010  x86 Redistributable Setup") Then WinActive("Microsoft Visual C++ 2010  x86 Redistributable Setup")
WinWaitActive("Microsoft Visual C++ 2010  x86 Redistributable Setup")

;control line
;MsgBox(0,'Window','is activated - C1')

;WinWaitActive("Microsoft Visual C++ 2010  x86 Redistributable Setup")
ControlClick("Microsoft Visual C++ 2010  x86 Redistributable Setup", "","[ID:104]")
;control line
;MsgBox(0,'Window','is activated - C2')

WinWaitActive("Microsoft Visual C++ 2010  x86 Redistributable Setup")
ControlClick("Microsoft Visual C++ 2010  x86 Redistributable Setup", "","[ID:12324]")
Sleep(5000)
;MsgBox(0,'Window','Installing', 1)


;WinWaitActive("Microsoft Visual C++ 2010  x86 Redistributable Setup")
If Not WinActive("Microsoft Visual C++ 2010  x86 Redistributable Setup") Then WinActive("Microsoft Visual C++ 2010  x86 Redistributable Setup")
WinWaitActive("Microsoft Visual C++ 2010  x86 Redistributable Setup")
ControlClick("Microsoft Visual C++ 2010  x86 Redistributable Setup", "","[ID:12325]")
WinClose("Microsoft Visual C++ 2010  x86 Redistributable Setup")


;NDP461 <-- .NET
Run($sDrivers & "\NDP461-KB3102436-x86-x64-AllOS-ENU.exe")
WinWaitActive("Microsoft .NET 2015")
;control line
;MsgBox(0,'Window','is activated')
ControlClick("Microsoft .NET 2015","",104)
ControlClick("Microsoft .NET 2015","",12324)

;final screen
WinWaitActive("Microsoft .NET 2015")
ControlClick("Microsoft .NET 2015","",12325)

 

Link to comment
Share on other sites

You can use Run, shellexecute. do a forum search. 

 

Also you can install Net Framework using Silent Install.

https://msdn.microsoft.com/library/ee942965(v=VS.100).aspx

 

Saludos

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...