Visual ESD Link Generator

Discussion in 'MDL Projects and Applications' started by Krutonium, Jun 9, 2015.

  1. Krutonium

    Krutonium MDL Senior Member

    Joined:
    Aug 27, 2013
    Messages:
    409
    Likes Received:
    285
    Trophy Points:
    10
    #1 Krutonium, Jun 9, 2015
    Last edited: Jun 10, 2015
  2. Krutonium

    Krutonium MDL Senior Member

    Joined:
    Aug 27, 2013
    Messages:
    409
    Likes Received:
    285
    Trophy Points:
    10
    #2 Krutonium, Jun 9, 2015
    Last edited: Jun 10, 2015
    (OP)
    Ye olde' Reserved Post.
     
  3. Krutonium

    Krutonium MDL Senior Member

    Joined:
    Aug 27, 2013
    Messages:
    409
    Likes Received:
    285
    Trophy Points:
    10
  4. Krutonium

    Krutonium MDL Senior Member

    Joined:
    Aug 27, 2013
    Messages:
    409
    Likes Received:
    285
    Trophy Points:
    10
    Is that a special case for that language?
     
  5. Krutonium

    Krutonium MDL Senior Member

    Joined:
    Aug 27, 2013
    Messages:
    409
    Likes Received:
    285
    Trophy Points:
    10
    #5 Krutonium, Jun 10, 2015
    Last edited: Jun 10, 2015
    (OP)
    I threw the info at the other command line version, it appears to also have the same issue, so no help there...

    So, having poked around, I think I have a fix, Please hold ;)
     
  6. Krutonium

    Krutonium MDL Senior Member

    Joined:
    Aug 27, 2013
    Messages:
    409
    Likes Received:
    285
    Trophy Points:
    10
    Fixed, re-download from link!
     
  7. TeamOS

    TeamOS MDL Guru

    Joined:
    May 27, 2013
    Messages:
    3,046
    Likes Received:
    1,739
    Trophy Points:
    120
    very awsome that help alot!!!
     
  8. Krutonium

    Krutonium MDL Senior Member

    Joined:
    Aug 27, 2013
    Messages:
    409
    Likes Received:
    285
    Trophy Points:
    10
    > Some of the info you entered appears to be wrong. Please try again!

    Means that it got a 404 from Microsoft for both variations of Download Link
    It doesn't use a database, it just checks both /c/ and /d/ to see if either one works.

    2. Hmmm... I'll re-work it, since that is a good idea.

    3. Maybe not WGet, but I can implement downloading.
     
  9. Krutonium

    Krutonium MDL Senior Member

    Joined:
    Aug 27, 2013
    Messages:
    409
    Likes Received:
    285
    Trophy Points:
    10
    Okay, so I added code to download ESD's, but I think I broke .Net... In any case, I am off for tonight, will work on it again tomorrow.
     
  10. El_Heffe

    El_Heffe MDL Member

    Joined:
    Jul 16, 2007
    Messages:
    176
    Likes Received:
    72
    Trophy Points:
    10
    The program asks for the SHA1 of the esd I want to download. The program will not function without that information -- BUT -- That information is not listed on the ESD database page.

    Even worse, at that point you can't even exit the program. I had to use task manager to kill the process.
     
  11. Krutonium

    Krutonium MDL Senior Member

    Joined:
    Aug 27, 2013
    Messages:
    409
    Likes Received:
    285
    Trophy Points:
    10
    Ye, I am fixing this - also, to get the SHA1 you have to hit Save on the DB Page, and open the CSV with Excel or similar.
     
  12. EFA11

    EFA11 Avatar Guru

    Joined:
    Oct 7, 2010
    Messages:
    8,729
    Likes Received:
    6,728
    Trophy Points:
    270
  13. Krutonium

    Krutonium MDL Senior Member

    Joined:
    Aug 27, 2013
    Messages:
    409
    Likes Received:
    285
    Trophy Points:
    10
    As far as I can tell, anything before the b1 can be disregarded - I suspect that what happens is you bounce off a load balancing server at MS.
     
  14. Krutonium

    Krutonium MDL Senior Member

    Joined:
    Aug 27, 2013
    Messages:
    409
    Likes Received:
    285
    Trophy Points:
    10
    Yep, once WU starts downloading, hit the Detect Current Download Button and it will grab the link to that download.
     
  15. Krutonium

    Krutonium MDL Senior Member

    Joined:
    Aug 27, 2013
    Messages:
    409
    Likes Received:
    285
    Trophy Points:
    10
    Can you please describe the process of what your trying to do?
     
  16. Krutonium

    Krutonium MDL Senior Member

    Joined:
    Aug 27, 2013
    Messages:
    409
    Likes Received:
    285
    Trophy Points:
    10
    What commands do you run when your doing this?
     
  17. s1ave77

    s1ave77 Has left at his own request

    Joined:
    Aug 15, 2012
    Messages:
    16,130
    Likes Received:
    24,279
    Trophy Points:
    340
  18. Krutonium

    Krutonium MDL Senior Member

    Joined:
    Aug 27, 2013
    Messages:
    409
    Likes Received:
    285
    Trophy Points:
    10
    No, I don't think this will work - I don't see a way to force it to install an update, that is what I would need.
     
  19. Superfly

    Superfly MDL Expert

    Joined:
    Jan 12, 2010
    Messages:
    1,143
    Likes Received:
    543
    Trophy Points:
    60
    #19 Superfly, Jun 10, 2015
    Last edited by a moderator: Apr 20, 2017
    Krutonium, I see you are using a string as a split separator - String.Split takes a char[] - thus it splits on "h" not "http" - use this instead...

    Code:
            
    Dim delimiter As String = "http"
            Dim Split As Array = Regex.Split(OutPut, delimiter)
            For Each item In Split
                If item.Contains("esd") Then
                    txtLink.Enabled = True
                    txtLink.Text = delimiter & item
                    Exit For
                End If
            Next
    I hope this works - my VB is a bit rusty.
     
  20. Krutonium

    Krutonium MDL Senior Member

    Joined:
    Aug 27, 2013
    Messages:
    409
    Likes Received:
    285
    Trophy Points:
    10
    #20 Krutonium, Jun 10, 2015
    Last edited: Jun 10, 2015
    (OP)
    Yep it did, Uploading new build :p

    Only change was:

    If item.Contains("esd") Then

    to

    if item.toString.toUpper.Contains("ESD") then