can not load 7 - zip libary or internal COM error ! Message : your 7 - zip libary does not support this arichve type

Aug 6, 2011 at 10:28 PM

Ive written an Autoupdater Program in VB.Net using the 7zipsharp.dll. On the most Computers in my Community it works verry well but some one of them gets this error.

can not load 7 - zip libary or internal COM error ! Message : your 7 - zip libary does not support this arichve type

I dont know about that and google seraching did not help me... I know the message say that the Archive ist not Supported but on so many Computers it works well.

Ive tested the downloaded Archives and they not damaged.

The Files i have to Extract are rar files and thats the code i am using

 

Public Function extract(ByVal Datei As String)
        'Extract begin
        Dim tzipp As String
        If IntPtr.Size > 4 Then
            TextBox1.Text = TextBox1.Text & "System als 64 Bit erkannt" & vbCrLf
            tzipp = Application.StartupPath & "\7z64.dll"
        Else
            TextBox1.Text = TextBox1.Text & "System als 32 Bit erkannt" & vbCrLf
            tzipp = Application.StartupPath & "\7z.dll"
        End If

        Dim extractLocation As String = Application.StartupPath
        TextBox1.Text = TextBox1.Text & "Lade Entzipper" & vbCrLf
        SevenZipExtractor.SetLibraryPath(tzipp)

        Application.DoEvents()

        ' Create extractor and specify the archive to extract
        TextBox1.Text = TextBox1.Text & "Dekomrimiere Datei" & vbCrLf
        Dim ext As SevenZipExtractor = New SevenZipExtractor(Datei)

        ' Handlers
        AddHandler ext.Extracting, AddressOf ext_Extracting

        'Start the extraction

        ext.ExtractArchive(extractLocation)
    End Function

 

I am sorry for my bad end hope you can help me.

mfg Cellanir

Aug 13, 2011 at 8:40 AM

Hi, I'm not good at English.

 

If you use this code in multi-threads,

Please try lock statement for Extractor constructor.

 

  SyncLock lockObject
    ext = New SevenZipExtractor(Datei)
  End SyncLock

 

 

Aug 19, 2011 at 6:11 PM

I'll try it but i dont use multi-threats...

When your english is so bad we aktually can switch to german because my english isn't realy better^^

Aug 22, 2011 at 5:57 PM

Ummm.
Then, I think that the program execute unnecessary codes in Application.DoEvents().

I studied German about 30 hours. ;-)