Results 1 to 9 of 9
  1. #1
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,679
    My Mood
    Mellow

    [Help] With auto-updater

    Okay so I was looking at Ugleh's tut in the sticky about making an auto updater.

    I don't get any errors or anything but it doesn't work because when I open the link to

    www.MYWEBSITEBLAHBLAH.com/Version.txt it doesn't open the Version.txt, it just has a blank screen so it can't read the value and compare it to the build number.

    This is what happens when i call my ftp site:



    If anyone could help me fix this or suggest an alternate "new version" checker method it would be much appreciated.

    Thanks

    J-Deezy

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  2. #2
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,136
    My Mood
    Dead
    Hmm.... I think the version.txt is empty. Try to re-upload it. If you've done all that, then try this:


    [php]Dim Temp as string=My.Computer.Filesystem.GetTempFilename() & rnd() *10000
    My.Computer.Network.DownloadFile("https://www.mywebsiteblahblah.com/Version.txt",Temp)
    Dim read as string = My.Computer.FileSystem.ReadAllText(Temp)
    If not read = vbnullString Then
    Msgbox ("Check version here...")
    End If
    My.Computer.FileSystem.DeleteFile(Temp,FileIO.UIOp tion.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently, FileIO.UICancelOption.ThrowException)
    [/php]

    This code should work for you if the version.txt file is not empty...Working fine for me.

    Hope this helps !!

  3. #3
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,679
    My Mood
    Mellow
    Hmm...I reuploaded, made a new FTP site and reuploaded there..didn't work

    Then I tried your code but it's having the save problem with there being nothing there i think.

    I editted your code to this

    Code:
            Dim Temp As String = My.Computer.FileSystem.GetTempFileName() & Rnd() * 10000
            My.Computer.Network.DownloadFile("https://MyWebsiteOMGITSSECRET/Version.txt", Temp)
            Dim read As String = My.Computer.FileSystem.ReadAllText(Temp)
    
            MsgBox(read)
    
            My.Computer.FileSystem.DeleteFile(Temp, FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently, FileIO.UICancelOption.ThrowException)
    Just to check if it was reading anything. The message box never popped up so i dunno wtf is going on.

    EDIT: Okay it's encountering an error with .404 Not found. Im not sure what the problem is lol cos the link works fine.
    Last edited by Jason; 05-10-2010 at 10:19 AM.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  4. #4
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Code:
    Imports System.Io
    
    [...]
    
    Sub LoadNotice()
            Try
                Dim request As HttpWebRequest = WebRequest.Create(strNotice)
                Dim response As HttpWebResponse = request.GetResponse()
                Dim reader As StreamReader = New StreamReader(response.GetResponseStream())
                Richtextbox1.Text = reader.ReadToEnd()
                response.Close()
                reader.Close()
            Catch ex As Exception
                MsgBox(ex.Message)
            End Try
        End Sub
    If this is not working, your ftp is fked.



  5. #5
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,679
    My Mood
    Mellow
    Am I supposed to change StrNotice to something cos it's not declared?

    Im choob at this webrequest stuff.

    And the ftp is working fine for downloading my other files, it's the "version.txt" file that it just doesn't want to download.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  6. #6
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    #Region "Settings"
    Const strNotice As String = "https://link-to-your/notice.txt"

    #End Region



  7. #7
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,679
    My Mood
    Mellow
    Nothing I'm pretty sure it's the FTP, not the code. Can anyone recommend a good free webhost site just for the version.txt file haha. I was using 000webhos*****m and it's not working.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  8. #8
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    bplaced

    google for it.



  9. #9
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,136
    My Mood
    Dead
    Quote Originally Posted by J-Deezy View Post
    Nothing I'm pretty sure it's the FTP, not the code. Can anyone recommend a good free webhost site just for the version.txt file haha. I was using 000webhos*****m and it's not working.
    Buddy your Ftp is poor......codes should work !!!

    Anywayz Search Google for "Yola Sites"...Its free and supports file uploads !!

Similar Threads

  1. Help With Hacks (update)
    By jaidonl11 in forum WarRock Help
    Replies: 5
    Last Post: 03-27-2011, 08:43 PM
  2. plese i need help with new update
    By megdad in forum CrossFire Help
    Replies: 6
    Last Post: 12-16-2010, 10:01 AM
  3. Help with new update?
    By Demented420 in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 07-13-2010, 07:07 PM
  4. I need help with this updater
    By trevor206 in forum Visual Basic Programming
    Replies: 3
    Last Post: 02-27-2010, 08:20 AM
  5. help with warrock updater
    By tarty67 in forum WarRock - International Hacks
    Replies: 0
    Last Post: 07-03-2007, 01:30 AM