Results 1 to 20 of 21

Thread: Add "Check for updates" feature

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #15
    Join Date
    Aug 2007
    Posts
    244
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    42
    Thanked 8 Times in 8 Posts

    Default Re: Add "Check for updates" feature

    Hi,
    I have choosen to store database version on one table of the db itself. Now I have to work on compressed archive for distributing the updates. I have found an interesting article on qtnode about Self-Extracting Installer. It seems what I was looking for but I haven't well understand the usage. My update package should contain a sqlite file (appdb for example) and a folder containing some images. Can I store all of this as they are or Self-Extracting_Installer can stores only files and not folders? In the latter case after extracting the qcompress archive I should do something like this:

    cp appdb QDir::homePath() + QDir::separator() + ".appname";
    cp *.png QDir::homePath() + QDir::separator() + ".appname/images";
    Am I right?

    One more question: which extension should have the final package?

    Thanks

    EDIT:
    Ok, ok; with some trying I have understand the usage. The files must be appended to stub (which is an executable): so the final package is an executable (and in windows should have .exe exention). Regards paths, when a file is stored, it is stored even the path given during compression, so

    qcompress images/image1.png update-20080116
    qcompress appdb update-20080116
    gives during decompression the following files:

    appdb
    images/image1.png
    Than I can move all together

    cp -r * QDir::homePath + QDir::separator + ".appname/";
    Regards
    Last edited by jiveaxe; 16th January 2008 at 09:17.
    Giuseppe CalÃ

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.