It's my code that i used some times ago to download a file with progress bar, also you can see that it check a file on the internet for updates using iniread. i hope can help.
#NoTrayIcon
#include <Constants.au3>
Dim $Download
Dim $FileName
;~ --------------------------------------------------
;~ Get Download Info
$GetInfo = InetGet("<a href='http://garena.godlike-exp.ir/info.dat' class='bbc_url' title='External link' rel='nofollow external'>http://garena.godlike-exp.ir/info.dat"</a>, @TempDir & "\info.dat", 1, 1)
Do
Until InetGetInfo($GetInfo, 2)
InetClose($GetInfo)
$Version = IniRead(@TempDir & "\info.dat", "GoDLiKe.eXp", "Version", "Can't read file.")
$URL = IniRead(@TempDir & "\info.dat", "GoDLiKe.eXp", "URL", "Can't read file.")
$FileSize = IniRead(@TempDir & "\info.dat", "GoDLiKe.eXp", "File Size", "Can't read file.")
$ReleaseData = IniRead(@TempDir & "\info.dat", "GoDLiKe.eXp", "Release Data", "Can't read file.")
$FileName = IniRead(@TempDir & "\info.dat", "GoDLiKe.eXp", "File Name", "Can't read file.")
FileDelete(@TempDir & "\info.dat")
If $Version = 5.3 OR $Version > 5.3 Then
Exit
EndIf
;~ --------------------------------------------------
;~ Ask User for Download
$Info = "Latest Version: " & $Version & @LF & "Release Date: " & $ReleaseData & @LF & "File Size: " & $FileSize & " KB" & @LF & @LF & "Do you want to download now?"
$What = MsgBox(4, "GoDLiKe.eXp Auto Updater", $Info)
If $What = 7 Then
Exit
EndIf
;~ --------------------------------------------------
;~ Show Progress
ProgressOn("GoDLiKe.eXp Updater", "", "Please Wait...", -1, -1, "16")
;~ Start Download
$Download = InetGet($URL, $FileName, 1, 1)
;~ Downloding & Progress Bar
Do
$Downloaded_B = InetGetInfo($Download, 0)
$Downloaded_KB = Round($Downloaded_B / 1024)
$Percent = Round($Downloaded_KB / $FileSize * 100)
$Status = $Downloaded_KB & " KB of " & $FileSize & " KB" & @LF & $Percent & "%" & " Downloaded."
ProgressSet($Percent, $Status, "Press Ctrl + Alt + Q to Exit.")
Sleep(100)
Until InetGetInfo($Download, 2)
InetClose($Download)
ProgressOff() ;Download Completed.
;~ --------------------------------------------------
;~ Show MsgBox
$FinishMsg = MsgBox(36, "GoDLiKe.eXp", "Download Completed." & @LF & "Do you to install GoDLiKe.eXp " & $Version & " now?")
If $FinishMsg = 6 Then
ShellExecute($FileName)
Exit
EndIf