views:

29

answers:

1

i currently have this code to extract a passworded 7zip SFX to the appdata location run it then clean up after its self, but i'm losing a lot of compression i think also would just like to learn how to do this, so id like to learn how to make it so my application can extract a .7z file without having 7-zip installed on the computer (the application is ment to be ran on computers without 7-zip) i know it has to do with adding some dll files and such but any more than that and i'm clueless lol, also it would be cool to see how to add UHARC archiving functionality as well, any ways here's my coding for the SFX's

            string tempFolder = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
        System.Diagnostics.Process defrag1 = System.Diagnostics.Process.Start(@"AusLogics_Defrag.exe", string.Format(" -o{0} -y -Pthisisthepass", tempFolder));
        defrag1.WaitForExit();
        string executableDirectoryName = Path.GetDirectoryName(Application.ExecutablePath);
        System.Diagnostics.Process defrag2 = System.Diagnostics.Process.Start(tempFolder + "\\" + "AusLogics_Defrag" + "\\" + "DiskDefrag.exe", "");
        defrag2.WaitForExit();
        System.IO.Directory.Delete(tempFolder + "\\" + "AusLogics_Defrag", true);
A: 

http://sevenzipsharp.codeplex.com/

Sjoerd
ok yea i found that before but i have no idea how to put it in and how to use it.
NightsEVil
Go download it there are examples in the download.
the_ajp
when i download it all i get is the SevenZipSharp.dll
NightsEVil