Announcement

Collapse
No announcement yet.

Using HTTP.Download Action

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using HTTP.Download Action

    Hey,

    I have some trouble with this action. I read the documentation and did a lot of debunking, in the end it work but not. So it currently looks like this:

    Code:
    HTTP.Download("https://cdn-34.anonfiles.com/X2p2ibW0oc/18e71466-1600424714/Warcraft%20III%20Irina%20Setup.msi", "C:\\Users\\akeno\Desktop\\Setup Factory Output\\Setup.msi", MODE_BINARY, 20, 80, nil, nil, nil);
    StatusDlg.Show(MB_ICONNONE, false);
    When I build the project and run the setup, I get a very fast popup of something (probably the dialog), then disappears and setup goes on as normal without this file being downloaded. When I removed these two lines of code, built and ran again, there was no "fast popup" again (something that quickly appears then disappears). Anyone has any idea why it's not working? I want to make an installer that downloads files from the web, instead of bundling up all the resources in the exe, making it huge.

  • #2
    I can't seem to find the edit button, but I want to add, I also tried using this code:

    Code:
    HTTP.DownloadSecure("https://cdn-34.anonfiles.com/X2p2ibW0oc/18e71466-1600424714/Warcraft%20III%20Irina%20Setup.msi", "C:\\Users\\akeno\\Desktop\\Setup Factory Output\\Irina.msi", MODE_BINARY, 20, 443, nil, nil, nil);
    StatusDlg.Show(MB_ICONNONE, false);
    I'll keep experimenting around, and see if I manage somehow.

    Comment


    • #3
      I truly apologize for all the posts but I really can't find an edit button, but using the code above, I actually managed to install the file, but only 10 KB of it out of ~800 MB. Perhaps there is a code that waits for the installation to finish, before proceeding (and shows a progress bar too)?

      Comment


      • #4
        I finally got it to work! Although there is one thing I'm concerned about, how do I make it show the progression of the download? Right now everything is blank and nothing is showing while its downloading. The setup.msi is at 0 bytes, but if I check its properties I can see it getting bigger so it definitely works. Just that there is no progression bar, like this:

        Click image for larger version

Name:	ocr (368).png
Views:	78
Size:	2.53 MB
ID:	305478

        Comment


        • #5
          I fixed it by changing places of the code... took me 2 hours to realize it works just like coding (like a waterfall) like here too... **** I really love this program. <3 I was just being stupid. :P

          Code:
          HTTP.DownloadSecure("https://cdn-34.anonfiles.com/X2p2ibW0oc/18e71466-1600424714/Warcraft%20III%20Irina%20Setup.msi", "C:\\Users\\akeno\\Desktop\\Setup Factory Output\\Irina.msi", MODE_BINARY, 20, 443, nil, nil, nil); StatusDlg.Show(MB_ICONNONE, false);

          Comment


          • #6
            Ops, this is how the code looks like, if anyone runs into the same problem like me in the future and finds this thread:

            Code:
            StatusDlg.Show(MB_ICONNONE, false);
            
            HTTP.DownloadSecure("https://cdn-33.anonfiles.com/X2p2ibW0oc/58e98894-1600433672/Warcraft%20III%20Irina%20Setup.msi", "C:\\Users\\akeno\\Desktop\\Setup Factory Output\\HookSuccess.msi", MODE_BINARY, 20, 443, nil, nil, nil);

            Comment

            Working...
            X