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:
Am I right?cp appdb QDir::homePath() + QDir::separator() + ".appname";
cp *.png QDir::homePath() + QDir::separator() + ".appname/images";
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
gives during decompression the following files:qcompress images/image1.png update-20080116
qcompress appdb update-20080116
Than I can move all togetherappdb
images/image1.png
Regardscp -r * QDir::homePath + QDir::separator + ".appname/";
Bookmarks