Jump to content
  • Advertisement
Sign in to follow this  
Miksan

[.net] Creating RAR archives

This topic is 4844 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need to create rar and zip archives with my program. I found #ziplib to be quite good at making zip archives, but I haven't found anything to make rar archives. Is it so that I can make rar archives only with the tools provided by rarlabs? I'm now using the rar.exe command line tool with Process.Start and it works quite fine, but I cannot extract any progress info from it. And it's quite a messy hack. Is there a .net rar library available?

Share this post


Link to post
Share on other sites
Advertisement
Why would you only want to use RAR archives, may I ask? ZIP is pretty mainstream now and SharpZipLib is released under a nice license [smile]. It's also very easy to use.

Share this post


Link to post
Share on other sites
You can use zlib for rar archives aswell.
If you don't know how it's done, this lib is for you:
http://www.unrarlib.org/

Share this post


Link to post
Share on other sites
The purpose of the program is to create both type of archives. Of course I would just use SharpZipLib, but the ability to create rar archives is vital. The problem seems to be that rar archives can only be legally created with WinRAR.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
maybe 7-zips LZMA# SDK can help you.

http://www.7-zip.org/download.html

Share this post


Link to post
Share on other sites
Both zip and rar's compression algorithm (i even think they use the same) are supported by zlib.
Just find a good spec about them, and you can implement it with zlib.

Share this post


Link to post
Share on other sites
IIRC zlib does NOT support RAR in any form. the RAR algorithms are proprietary. and rarlabs provide code for DEcompression only.
if it is for maximum compression only, i would recommend the 7zip SDK, too.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!