Unzip with progressbar and tell when it finished,include .dll in project

Oct 20, 2011 at 4:20 PM

I'm using this:

Imports Ionic.Zip
Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub MyExtract()
 Dim ZipToUnpack As String = Application.StartupPath + "\Arhive.zip"
Dim UnpackDirectory As String = Application.StartupPath + "\"
Using zip1 As ZipFile = ZipFile.Read(ZipToUnpack)
Dim e As ZipEntry
 For Each e In zip1
e.Extract(UnpackDirectory, ExtractExistingFileAction.OverwriteSilently)
End Using
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
End Sub
End Class

I have some questions
1.How can I make a code that unzips with progress bar and then to check if uzipping finished then label1.text= "Unzipping finished"
2.How can I add .dll file inside vb.net without adding it again in application folder!

I've tried Extract with a Progress event. but is not working I get errors.

Please if you don't mind could you make the code? thanks a lot