Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › [Help]Auto Update

[Help]Auto Update

Posts 1–8 of 8 · Page 1 of 1
SN
snotpig
[Help]Auto Update
I am making a complex program hopefully to be released in the near future. (Intentionally evasive) In my program I have a 'check for updates' menu tab that opens a new form. On this form i have a single button, which when pressed downloads a text file from the server.

This code has no errors as I can see it just doesn't do what i want...


Code:
Private Sub WebClient_DownloadFileCompleted(ByVal sender As Object, ByVal e As System.ComponentModel.AsyncCompletedEventArgs) Handles WebClient.DownloadFileCompleted
        MsgBox("Checking complete")
        readit.Text = My.Computer.FileSystem.ReadAllText("Version.txt")
        If readit.Text.Length > 7 Then
            Downloadfile("http://www.MyServer.com\Version.txt")
            Exit Sub
        End If
        Dim updatedVersion As Double = Val(readit.Text)
        Dim currentVersion As Double = Val(Application.ProductVersion)

        UVer.Text = readit.Text

        If updatedversion > currentversion Then
            MsgBox("New Update Avalible!")
            System.Diagnostics.Process.Start("http://www.UpdateSite.com")
        Else
            MsgBox("No Updates Avalible")
        End If
    End Sub
When the code is done,
currentVersion = 1.0 , where in the project assembly it is 1.0.0.0
updatedVersion = 5.0 , where in the text file it is 5.0.0.0

Am I using the wrong variable type? I want the,
Code:
If updatedversion > currentversion Then
            MsgBox("New Update Avalible!")
            System.Diagnostics.Process.Start("http://www.UpdateSite.com")
        Else
            MsgBox("No Updates Avalible")
        End If
To compare the whole number not just the first 3 characters....


Thnx
#1 · 16y ago
NextGen1
NextGen1
Hmmm.... or you can use Visual Studio's built in check for update feature.

Just a thought
#2 · 16y ago
Bombsaway707
Bombsaway707
Quote Originally Posted by NextGen1 View Post
Hmmm.... or you can use Visual Studio's built in check for update feature.

Just a thought
LOL Nextgen
@ snotpig Ugleh posted a TUT on how to use a text file to check for updates. Use the all powerful search tool
#3 · 16y ago
NextGen1
NextGen1
Agreed, Search, Didn't I add it in the tuts?

In either case, Everyone here by now knows how I am about cleanliness in code , Visual Studio will generate the code on build and publish, all you have to do is follow the steps.
#4 · 16y ago
Bluthera
Bluthera
lolz....

I have no idea, but myserver.com? It's .org

yea, i probably spouted some stupid words there.
#5 · 16y ago
SN
snotpig
Quote Originally Posted by Bluthera View Post
lolz....

I have no idea, but myserver.com? It's .org

yea, i probably spouted some stupid words there.
Lol, I made that up because i didnt want to show my username on this other site...

Its strange even though people looked at this thread the never answered my question. Maybe if i just said it instead of giving examples.

What type should I use if i want to see if 1.2.3.4 is > 1.2.4.3?
#6 · 16y ago
Bluthera
Bluthera
Quote Originally Posted by snotpig View Post
Its strange even though people looked at this thread the never answered my question. Maybe if i just said it instead of giving examples.
you should follow their advice and use the feature
#7 · 16y ago
SN
snotpig
Quote Originally Posted by Bluthera View Post
you should follow their advice and use the feature
I will, but what if I want to see if one number is bigger than the other. COMPLETLY unrelated to version checking...

PS. I've never see/used the built in updater before, where/how do i use it? Im using VB 2008 Express.
#8 · 16y ago
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

  • [Please Help] Auto-UpdatingBy twistedswift in Hack Requests
    0Last post 18y ago
  • Auto-Updating AddressesBy OneWhoSighs in Game Hacking Tutorials
    4Last post 13y ago
  • Minecraft Auto-Updater unable to openBy kenl12 in Minecraft Help
    4Last post 15y ago
  • [Help] With auto-updaterBy Jason in Visual Basic Programming
    8Last post 16y ago
  • Help to updateBy miladkingpro in Combat Arms Help
    2Last post 15y ago

Tags for this Thread

None