Yeah, I checked to be sure, none of the files are password protected.
I tried your script #2, what's interesting is that it never gets to the second part of the code (it seems). Anyway, I ran the following code (your code cut in half, and I added a msg box):
;Do the same as the last GUI
$url = "http://server/path/to/file.exe"
$size = InetGetSize ($url)
MsgBox(0, "Size of remote file:", $size)
InetGet ($url, @ScriptDir & "\installer.txt", 1, 1)
$Form1 = GUICreate("Downloading Resource2...", 341, 83, 193, 123)
$Progress1 = GUICtrlCreateProgress(6, 30, 330, 21)
GUICtrlSetLimit (-1, $size, 0)
$Label1 = GUICtrlCreateLabel("Downloading... "&$URL, 6, 6, 326, 20)
$Label2 = GUICtrlCreateLabel("Downloaded 1000mb\1000mb", 6, 54, 330, 20, $SS_RIGHT)
GUISetState(@SW_SHOW)
GUICtrlSetData ($Label1, "Downloading... "&$URL)
While @InetGetActive
GUICtrlSetData ($Label2, "Downloaded "&Int (@InetGetBytesRead *1024*1024)&" mb\"&Int ($size*1024*1024)&" mb")
Sleep (100)
GUICtrlSetData ($Progress1, @InetGetBytesRead)
Sleep (100)
WEnd
;Tell the user the downloads are complete.
MsgBox (0, "Complete!", "All Downloads have been completed!")
Here's where it gets funky... I get a msg popup that says the filesize is = 0, however, right after that it starts to download the file fine (showing a large number mb / 0 mb). Why would InetGet work but InetGetSize not? A problem with the server giving correct file size information? Is there a work around?
Thanks for your help!
(Had to modify the original reply, forgot to take out some semi-sensitive code