Jump to content

Http File Link not working


 Share

Recommended Posts

Hi all

Im working on a tech program which i use when im fixing pc's

With some help from another thread ive got this working nicely

Case $msg = $tech_but_1
            If $net_test = 0 Then
                MsgBox (0, "Connection Error", "        No Internet Connection Is Currently Available. ", 5)
                    Else
                        $URL = "http://www.piriform.com/ccleaner/download/slim/downloadfile/"
                            $file = @ScriptDir & "\file_includes\tech\tech_ccleaner.exe"
                        InetGet ($URL , $file, 1, 0)
                    If FileExists(@ScriptDir & "\file_includes\tech\tech_ccleaner.exe") Then
                RunWait(@ScriptDir & "\file_includes\tech\tech_ccleaner.exe /S")
            EndIf
        EndIf

So i started doing a slightly more harder one and i have hit a snag

Case $msg = $install_but_3
            If $net_test = 0 Then
                MsgBox (0, "Connection Error", "        No Internet Connection Is Currently Available. ", 5)
                    Else
                        $URL = "http://download.avgfree.com/filedir/inst/"
                            $file = @ScriptDir & "\file_includes\install\install_avg.exe"
                        InetGet ($URL , $file, 1, 0)
                    If FileExists(@ScriptDir & "\file_includes\install\install_avg.exe") Then
                RunWait(@ScriptDir & "\file_includes\install\install_avg.exe 
            EndIf
        EndIf

now its targeted at the offline installer which is here

http://download.avgfree.com/filedir/inst/avg_free_x86_all_2011_1120a3152.exe

and i have tried several diff things for eg

$URL = "http://download.avgfree.com/filedir/inst/avg_free_x86_all_2011_1120a3152.exe

$URL = "http://download.avgfree.com/filedir/inst/avg_free_x86_all_2011_1120a3152.exe"
                            Send("{TAB} 2")
                            Send("{ENTER}")

None of which work, so im wondering am i missing something obvious or possibly do avg have something in place to stop the download?

Link to comment
Share on other sites

So i started doing a slightly more harder one and i have hit a snag

Case $msg = $install_but_3
            If $net_test = 0 Then
                MsgBox (0, "Connection Error", " No Internet Connection Is Currently Available. ", 5)
                    Else
                        $URL = "http://download.avgfree.com/filedir/inst/"
                            $file = @ScriptDir & "\file_includes\install\install_avg.exe"
                        InetGet ($URL , $file, 1, 0)
                    If FileExists(@ScriptDir & "\file_includes\install\install_avg.exe") Then
                RunWait(@ScriptDir & "\file_includes\install\install_avg.exe 
            EndIf
        EndIf

The above worked for me...except the $URL needs to be:

$URL = "http://download.avgfree.com/filedir/inst/avg_free_x86_all_2011_1120a3152.exe"
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...