Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 05, 2015, 05:21:01 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Adding support for zip files  (Read 5583 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 35,013
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Adding support for zip files
« on: July 08, 2007, 03:29:12 PM »
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

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Adding support for zip files
« Reply #1 on: July 08, 2007, 03:35:10 PM »
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

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 160
    • View Profile
    • Donate to Member
Re: Adding support for zip files
« Reply #2 on: July 08, 2007, 03:43:05 PM »
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

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 35,013
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: Adding support for zip files
« Reply #3 on: July 08, 2007, 04:02:13 PM »
Quote
Or maybe just limit themselves to unzip to the same directory as the .dcupdate file?
this is what i was thinking.

Quote
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.
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..

Quote
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.
the updater already supports launching downloaded exe installers.

Tekzel

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 228
    • View Profile
    • Donate to Member
Re: Adding support for zip files
« Reply #4 on: July 11, 2007, 08:38:18 AM »
Hey Mouser, before I report a bug, does this thread mean DCUpdater can not currently update the FARR plugins? 

justice

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,896
    • View Profile
    • Donate to Member
Re: Adding support for zip files
« Reply #5 on: July 11, 2007, 08:44:43 AM »
Farr comes with updated versions of farr plugins that mouser has included in the default installation. Any other ones that have been added won't work at the moment if they depend on zip files, as that functionality is not in DCUpdater yet.

That's my understanding.

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Adding support for zip files
« Reply #6 on: July 11, 2007, 09:24:41 AM »
Hey Mouser, before I report a bug, does this thread mean DCUpdater can not currently update the FARR plugins? 
Yes, that is correct. Until mouser adds unzipping to DCupdater, the plugins can't be updated. The version verification still works, though. All you have to do is unzip the plugins to their directory and dcupdater does the rest.

Tekzel

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 228
    • View Profile
    • Donate to Member
Re: Adding support for zip files
« Reply #7 on: July 11, 2007, 10:00:31 AM »
Ok, thanks guys.  I thought that might be the case, but just wanted to make sure.