Welcome Guest.   Make a donation to an author on the site July 24, 2014, 01:23:32 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Free DonationCoder.com Member Kit: Submit Request.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Adding support for zip files  (Read 5149 times)
mouser
First Author
Administrator
*****
Posts: 33,174



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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?
Logged
tinjaw
Supporting Member
**
Posts: 1,926



I'm so glad breakbeat techno isn't an illegal drug

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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.  Cool
Logged

 
taichimaster
Charter Member
***
Posts: 159



View Profile WWW Give some DonationCredits to this forum member
« 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.
Logged

mouser
First Author
Administrator
*****
Posts: 33,174



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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.
Logged
Tekzel
Charter Member
***
Posts: 227



View Profile Give some DonationCredits to this forum member
« 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? 
Logged
justice
Supporting Member
**
Posts: 1,885



Solve issues simply.

View Profile WWW Give some DonationCredits to this forum member
« 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.
Logged

jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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.
Logged

Tekzel
Charter Member
***
Posts: 227



View Profile Give some DonationCredits to this forum member
« 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.
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.04s | Server load: 0.03 ]