Results 1 to 18 of 18

Thread: An Updater!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    119

    An Updater!

    Hello I was wondering how one might go about writein an app updater .. An auto Updater I am hopeing!

    Please give as much help .
    Links to as many tuts .. as u can .or unless some one wants to do it for me .. hehe .. Only jokein


    Thx in advanced

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    119

    Re: An Updater!

    Thx I will take a look !

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    119

    Re: An Updater!

    I don't understand that at all .. I mean like is there any totaly clear tuts .. on this !

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: An Updater!

    Perhaps, but I do know and have tested out wokas live update project and its awesome but a bit advanced.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: An Updater!

    Here's a smaller version of a live update .. also includes code to change it to a patch, where it downloads it to a folder called Patch under the Apps Main Folder. Another thing it does is close out your App if it is open, then reopen it with the new version ...

    File configuration is done in modConfig. Uses Winsock Control.
    Also uses an ASP page on the remote server to check the file versions (included).

    Rory

    PS. I have a Full Live Update in a program i did last year (http://www.bahamassecurity.com/livevue.asp) but i need to strip the code out of that program before i post it ..maybe another time
    Last edited by rory; Jul 27th, 2006 at 05:20 AM.

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    119

    Re: An Updater!

    Its not wrkin .. Says local Version Error!!

  8. #8
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: An Updater!

    Right .. it looks for the Main Program Exe in the Main Program Folder ..
    eg. C:\Program Files\MyProgram\MyProgram.exe

    First that has to exist (hence your error message) .. you can change that in the code ..

    Then it goes to the URL specified and runs the script in the ASP Page.
    The ASP page checks the File on the Server against the one in the main Program Folder, checks version numbers .. if the one on the Serber is newer it downloads it .. otherwise says no new updates.

    I wouild have included the test EXEs but dont think we can here.

    Updated it with my URL to test .. also see the notes in the modConfig module ..
    http://www.vbforums.com/attachment.p...chmentid=49730

    'Open a New Project & Compile blank Exe with App Title "My Program Title"
    'App title's need to be same if you want it to close and reopen if it was open
    'Paste it into a new folder -> C:\Program Files\MyProgram\MyProgram.exe
    'This exe will be version 1.0.0 by default since we just created it
    'The version of the MyProgram.exe on my server is 1.0.1 for testing
    'MyProgram.exe on my server is a blank exe as above with a MsgBox "New"
    Last edited by rory; Jul 27th, 2006 at 05:38 AM.

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    119

    Re: An Updater!

    More errors ..

    Updrade Reponce error ..

    I included the files .. an all .


    Okay here it is
    Attached Files Attached Files

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    119

    Re: An Updater!

    I yes I 4 got to say that I don't know if ASP will work on my webserver b.c when I open it on there all I see is the code...

  11. #11
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: An Updater!

    In the code i posted you will require a server that runs ASP.
    If you have Win XP Pro you can install IIS on your PC to handle that.

    Rory

  12. #12

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    119

    Re: An Updater!

    Na I have XP Home Ed
    An my stupid host don't support ASP Well not yet any ways ..
    http://awardspace.com
    There my host very good .. But there still in beta so some misshaps ..
    http://forum.awardspace.com
    The forum .. aas u see lol I am a mod there ..

  13. #13
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: An Updater!

    well you could convert the ASP to Php or some other server script, or search the php forum here .. basically it needs some kind of server script ...

    there is another option though, using a text file on the server..
    Ill convert this tomorrow ..

  14. #14
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: An Updater!

    Ok check this one out. Uses a Text file on the server to get the version.
    Let me know.

  15. #15
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: An Updater!


  16. #16
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: An Updater!

    I see you have PHP support. Go with that, it's easier than ASP/ASP.NET, and more widely supported.

    And for goodness sake don't make your client side app look like LiveUpdate

  17. #17
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: An Updater!

    dont like that skin hey (see the live update version in the PDF for my app - a modified version LOL)

    actually asp is easier than php if you already program in VB ... but yeah it isnt free generally as its windoze ..

  18. #18

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Posts
    119

    Re: An Updater!

    Thx rory

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width