From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: extracting a zip archive via elisp (with no external executables) Date: Sun, 09 Jul 2017 23:09:10 +0300 Message-ID: <8360f1jrtl.fsf@gnu.org> References: <6DD83BBE-94C7-40ED-A4DD-21BC4B0E834D@gmail.com> <20170709185119.GA21572@breton.holly.idiocy.org> <38400216-AEF4-404C-80ED-0A28FB85E30E@gmail.com> <7F95AA86-3B51-48C6-9C75-2FDB9B8047F0@gmail.com> <837ezhjsxi.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1499630996 6453 195.159.176.226 (9 Jul 2017 20:09:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Jul 2017 20:09:56 +0000 (UTC) Cc: alan@idiocy.org, emacs-devel@gnu.org, kaushal.modi@gmail.com To: Saulius =?utf-8?Q?Menkevi=C4=8Dius?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 09 22:09:49 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUIWU-0000Yt-OV for ged-emacs-devel@m.gmane.org; Sun, 09 Jul 2017 22:09:42 +0200 Original-Received: from localhost ([::1]:37285 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUIWS-0004Nh-3i for ged-emacs-devel@m.gmane.org; Sun, 09 Jul 2017 16:09:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUIWL-0004Nb-P6 for emacs-devel@gnu.org; Sun, 09 Jul 2017 16:09:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUIWH-0007BT-QZ for emacs-devel@gnu.org; Sun, 09 Jul 2017 16:09:33 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUIWH-0007BJ-NU; Sun, 09 Jul 2017 16:09:29 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3882 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dUIWF-0008Dz-QQ; Sun, 09 Jul 2017 16:09:29 -0400 In-reply-to: (message from Saulius =?utf-8?Q?Menkevi=C4=8Dius?= on Sun, 9 Jul 2017 22:49:50 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216376 Archived-At: > From: Saulius Menkevičius > Date: Sun, 9 Jul 2017 22:49:50 +0300 > Cc: kaushal.modi@gmail.com, > alan@idiocy.org, > emacs-devel@gnu.org > > > (w32-shell-execute "open" "FILENAME.zip") > > or > > (w32-shell-execute "explore" "FILENAME.zip") > > > > (replace FILENAME.zip with the actual file name). This will open the > > Windows Explorer showing the contents of the zip archive, and you > > should tell your users to click "File->Extract all" to extract the > > files into the directory of their choosing. > > > >> Instructing the user to install 7-zip or something else manually kind of > >> invalidates the purpose of automatic installation. > > > > Please never suggest to install 7z, it's not Free Software on Windows > > (and on Unix it's less capable to make it Free Software). If someone > > needs 7z capabilities, the best Free Software alternative is bsdtar > > from the libarchive project. > > My questions is still, is it possible to avoid involving user in this procedure? But the user is already involved -- they started the installation to begin with, didn't they? So why do you want so hard to avoid them clicking one more button? > Or do I need to roll out my own zip parser + extractor in elisp to do so :( > Which is probably slightly complicated thing to do.. Compared to what I > am trying to achieve. Maybe somebody knows how to tell the Explorer to extract the files without user interaction. I don't.