ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > DcUpdater

Adding support for zip files

(1/2) > >>

mouser:
I need to add support in the updater for handling updates consisting of zip files.
I could use an open source zip compatible c++ library, or i could shell out to small unzipper.
Any thoughts?

tinjaw:
I say add config options to call an external exe. This way people can choose how to do things. In the help file include links to download the free command line versions that almost all zip apps have. This would also allow for using compression algorithms that are better than zip. It would make the DcUpdater exe smaller as well.

I guess you could also call into dlls, but that wouldn't allow for customization.

Now, don't ask me how or why customization would be necessary. I'll leave that as an exercise for the class.  8)

taichimaster:
I think unzip would be the simplest unless the plugin installer needs to do some pre or post commands before/after the installation like deleting some old stuff etc.  Also, for unzip, how are people going to specify which target directory the zip file is going to unzip to?  Is the .dcupdate file going to specify that with a macro like %PLUGINDIR%?  Or maybe just limit themselves to unzip to the same directory as the .dcupdate file?

External EXE is also good, but then you might have different people using different installer...Inno, NSIS, MSI...., so the user-experience might not be consistent.  Also, they might all show up as entries in Add/Remove Programs.

mouser:
Or maybe just limit themselves to unzip to the same directory as the .dcupdate file?
--- End quote ---
this is what i was thinking.

I think unzip would be the simplest unless the plugin installer needs to do some pre or post commands before/after the installation like deleting some old stuff etc.
--- End quote ---
yes, in fact this pretty much cancels the idea of simply shelling an exe unzipper, since the updater may need to do post processing, and thus needs to know when unzipping has finished.  i'm looking for an open source unzip lib now..

External EXE is also good, but then you might have different people using different installer...Inno, NSIS, MSI...., so the user-experience might not be consistent.  Also, they might all show up as entries in Add/Remove Programs.
--- End quote ---
the updater already supports launching downloaded exe installers.

Tekzel:
Hey Mouser, before I report a bug, does this thread mean DCUpdater can not currently update the FARR plugins? 

Navigation

[0] Message Index

[#] Next page

Go to full version