Extract rar with password does not work #169

Closed
opened 2026-01-29 22:07:43 +00:00 by claunia · 3 comments
Owner

Originally created by @HamzaHizam on GitHub (Apr 28, 2017).

In my app I need to Extract rar with password but I cant find any thing in google help me.

  • I tried like that here https://github.com/adamhathcock/sharpcompress/issues/25
    but I got error in RarArchive.Open that say
    **Error 2 No overload for method 'Open' takes '3' arguments C:\Users\hamza\Documents\Visual Studio 2008\Projects\TryToUnRarfiFles\TryToUnRarfiFles\Form1.cs 40 38 TryToUnRarfiFles
    **
    -And I tried like that here https://github.com/adamhathcock/sharpcompress/issues/213
    but I got error again in --new ReaderOptions()-- and said
    Error 2 The type or namespace name 'ReaderOptions' could not be found (are you missing a using directive or an assembly reference?) C:\Users\hamza\Documents\Visual Studio 2008\Projects\TryToUnRarfiFles\TryToUnRarfiFles\Form1.cs 130 64 TryToUnRarfiFles
    ...
    Please if any one can help me ...
Originally created by @HamzaHizam on GitHub (Apr 28, 2017). In my app I need to Extract rar with password but I cant find any thing in google help me. - I tried like that here [https://github.com/adamhathcock/sharpcompress/issues/25](url) but I got error in RarArchive.Open that say **Error 2 No overload for method 'Open' takes '3' arguments C:\Users\hamza\Documents\Visual Studio 2008\Projects\TryToUnRarfiFles\TryToUnRarfiFles\Form1.cs 40 38 TryToUnRarfiFles ** -And I tried like that here [https://github.com/adamhathcock/sharpcompress/issues/213](url) but I got error again in --new ReaderOptions()-- and said **Error 2 The type or namespace name 'ReaderOptions' could not be found (are you missing a using directive or an assembly reference?) C:\Users\hamza\Documents\Visual Studio 2008\Projects\TryToUnRarfiFles\TryToUnRarfiFles\Form1.cs 130 64 TryToUnRarfiFles** ... Please if any one can help me ...
Author
Owner

@adamhathcock commented on GitHub (Apr 29, 2017):

Did you try looking at the options or tests instead of copy/pasting other things?

You're likely looking at old samples as the API surface changed

@adamhathcock commented on GitHub (Apr 29, 2017): Did you try looking at the options or tests instead of copy/pasting other things? You're likely looking at old samples as the API surface changed
Author
Owner

@HamzaHizam commented on GitHub (May 1, 2017):

Yes I think that. but I need any way to Extract rar with password may you help..

@HamzaHizam commented on GitHub (May 1, 2017): Yes I think that. but I need any way to Extract rar with password may you help..
Author
Owner

@adamhathcock commented on GitHub (May 1, 2017):

Just look at the tests. Dig a little.

https://github.com/adamhathcock/sharpcompress/blob/master/test/SharpCompress.Test/Rar/RarArchiveTests.cs#L16

@adamhathcock commented on GitHub (May 1, 2017): Just look at the tests. Dig a little. https://github.com/adamhathcock/sharpcompress/blob/master/test/SharpCompress.Test/Rar/RarArchiveTests.cs#L16
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#169