Sign in to follow this  
Followers 0

Help with an autoupdater

5 posts in this topic

Hi.I'm new in using autoit and i want to make an auto updater for my program.

I am using a script found on this forum.

This is it:

    if $onlinever>$currentver then
        $getnew=msgbox(4,"Update Available","Version "&$onlinever&" is available online, you currently have version "&$currentver&".  Would you like to download the latest version now?"&@crlf&"(the download is "&round(($dlsize/1000000),2)&"MB)"&@CRLF&@CRLF&$16changes&@CRLF&@CRLF&$15changes)
        if $getnew=6 Then
            $wheretosave=FileSelectFolder("Please choose a folder to save the installer","",1)
            $status=GUICreate("Download Progress",250,60)
            local $sofar
                if TimerDiff($toshow)>200 Then ;refresh every .2 seconds
                    $msg = GUIGetMsg()
                    if $msg = $GUI_EVENT_CLOSE then Exit
            until $dlsize=$sofar
            msgbox(0,"Done","Finished downloading the new version.  This installer will now exit, please run """&$wheretosave&"\program.exe"" to unpack the new installation.  You may also burn it to a CD or transfer it to a USB flash drive for future installation.")

This is the script but is an error at line 25.

Can you help me to fix it?Or can you give me another working script?

Share this post

Link to post
Share on other sites

... and what would be the error you're getting there??

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post

Link to post
Share on other sites

#3 ·  Posted (edited)

This is a screenshot with the error.

Can improve my script?


Edited by VipEr

Share this post

Link to post
Share on other sites

#include <GUIConstantsEx.au3>

#include <StaticConstants.au3>

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)

There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.


Share this post

Link to post
Share on other sites

thanks bogq now is working perfect.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0