7zip

How do I make a self extract and running installer

不问归期 提交于 2019-11-26 19:32:37
So currently my users download a zipfile, unzip it and then run setup.exe - I would like them to do this with one click. Using http://www.wikihow.com/Use-7Zip-to-Create-Self-Extracting-excutables i can make a self-extracting exe, but it doesn't actually run the installer. From this question Why does 7zip Ignore my InstallPath when making a SFX installer? it seems I also need an .sfx file so I copied from the other question and created one with the following contents ;!@Install@!UTF-8! InstallPath="C:\\test" GUIMode="2" RunProgram="setup.exe" ;!@InstallEnd@! and called setup.sfx and add this to

Free compression library for C# which supports 7zip (LZMA) [closed]

谁说胖子不能爱 提交于 2019-11-26 17:59:39
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I have a program (written in C#) that reads/writes its data directly (direct file access without server) to firebird database files. For a better exchange I want to (un)compress them on import/export for a better exchange over the internet without the need of an external program to (un)compress them. I know

extract 7zip in C# code

空扰寡人 提交于 2019-11-26 12:47:28
问题 I need use 7zip in C#. Without console, just with 7zSharp.dll ? + I find some data here http://7zsharp.codeplex.com/releases/view/10305 , but I don\'t know how to use it( - I could create .bat(.cmd) file, but I need throught dll file) Exactly: I need extract .7z file with key) 回答1: Download the standalone console version from 7zip.com and add it to your project. You need those 3 Files added in the project: 7za.exe 7za.dll 7zxa.dll Don't forget to say Copy to Output Directory in it's

How to read contents of 7z file using python

…衆ロ難τιáo~ 提交于 2019-11-26 12:29:51
问题 How can I read and save the contents of 7z. I use Python 2.7.9, I can extract or Archive like this, but I can\'t read contents in python, I only listing the file\'s contents in CMD import subprocess import os source = \'filename.7z\' directory = \'C:\\Directory\' pw = \'123456\' subprocess.call(r\'\"C:\\Program Files (x86)\\7-Zip\\7z.exe\" x \'+source +\' -o\'+directory+\' -p\'+pw) 回答1: You can use either libarchive or pylzma. If you can upgrade to python3.3+ you can use lzma, which is in the

How to use the 7z SDK to compress and decompress a file

梦想的初衷 提交于 2019-11-26 11:12:49
问题 According to this link How do I create 7-Zip archives with .NET? , WOPR tell us how to compress a file with LMZA (7z compression algorithm) using 7z SDK ( http://www.7-zip.org/sdk.html ) using SevenZip.Compression.LZMA; private static void CompressFileLZMA(string inFile, string outFile) { SevenZip.Compression.LZMA.Encoder coder = new SevenZip.Compression.LZMA.Encoder(); using (FileStream input = new FileStream(inFile, FileMode.Open)) { using (FileStream output = new FileStream(outFile,

Error Creating a 7-zip installer package

孤人 提交于 2019-11-26 08:39:04
问题 If this is not the correct place to ask this, I apologize. I use 7zip to create an installer package. Recently, my computer was updated, and I can no longer get it to work. I use a Windows Installer from Visual Studio 2010 to create the installation package, which I add to a file called setup.7z. I have confirmed that the files are archived correctly. I then call copy /b 7zsd.sfx + config.txt + setup.7z setup.exe which packages everything into a single file called \" setup.exe \". Clicking on

How do I make a self extract and running installer

天大地大妈咪最大 提交于 2019-11-26 07:00:02
问题 So currently my users download a zipfile, unzip it and then run setup.exe - I would like them to do this with one click. Using http://www.wikihow.com/Use-7Zip-to-Create-Self-Extracting-excutables i can make a self-extracting exe, but it doesn\'t actually run the installer. From this question Why does 7zip Ignore my InstallPath when making a SFX installer? it seems I also need an .sfx file so I copied from the other question and created one with the following contents ;!@Install@!UTF-8!

PowerShell script not zipping correct files

心不动则不痛 提交于 2019-11-26 03:28:43
问题 Function Zip { Param ( [string]$zipFile , [string[]]$toBeZipped ) $CurDir = Get-Location Set-Location \"C:\\Program Files\\7-Zip\" .\\7z.exe A -tzip $zipFile $toBeZipped | Out-Null Set-Location $CurDir } $Now = Get-Date $Days = \"60\" $TargetFolder = \"C:\\users\\Admin\\Downloads\\*.*\" $LastWrite = $Now.AddDays(-$Days) $Files = Get-Childitem $TargetFolder -Recurse | Where {$_.LastWriteTime -le \"$LastWrite\"} $Files Zip C:\\Users\\Admin\\Desktop\\TEST.zip $Files I am testing out this script

How do I create 7-Zip archives with .NET?

邮差的信 提交于 2019-11-26 03:27:30
问题 How can I create 7-Zip archives from my C# console application? I need to be able to extract the archives using the regular, widely available 7-Zip program. Here are my results with the examples provided as answers to this question \"Shelling out\" to 7z.exe - this is the simplest and most effective approach, and I can confirm that it works nicely . As workmad3 mentions, I just need to guarantee that 7z.exe is installed on all target machines, which is something I can guarantee. 7Zip in