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: windows installer Date: Sat, 11 Nov 2017 12:37:00 +0200 Message-ID: <83tvy1nltf.fsf@gnu.org> References: <1509955878.550800.1162811960.541B525D@webmail.messagingengine.com> <87h8u6bae3.fsf@russet.org.uk> <1510126271.1965593.1165373624.0601E5CF@webmail.messagingengine.com> <8760aijcek.fsf@russet.org.uk> <3f972e79-afcd-4f92-a283-41fad4b687fb@default> <83efp5p8km.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 1510396692 383 195.159.176.226 (11 Nov 2017 10:38:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 11 Nov 2017 10:38:12 +0000 (UTC) Cc: jostein@secure.kjonigsen.net, phillip.lord@russet.org.uk, jostein@kjonigsen.net, drew.adams@oracle.com, emacs-devel@gnu.org To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 11 11:38:07 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 1eDTAs-0008IN-Ne for ged-emacs-devel@m.gmane.org; Sat, 11 Nov 2017 11:38:06 +0100 Original-Received: from localhost ([::1]:45100 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDTAz-0001F3-Ub for ged-emacs-devel@m.gmane.org; Sat, 11 Nov 2017 05:38:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDTAt-0001Ey-5r for emacs-devel@gnu.org; Sat, 11 Nov 2017 05:38:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDTAs-0000X4-5L for emacs-devel@gnu.org; Sat, 11 Nov 2017 05:38:07 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDT9o-0000Fh-MW; Sat, 11 Nov 2017 05:37:00 -0500 Original-Received: from [176.228.60.248] (port=1967 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eDT9o-0003Pl-0r; Sat, 11 Nov 2017 05:37:00 -0500 In-reply-to: (message from Yuri Khan on Sat, 11 Nov 2017 16:42:41 +0700) 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:220061 Archived-At: > From: Yuri Khan > Date: Sat, 11 Nov 2017 16:42:41 +0700 > Cc: Drew Adams , Jostein Kjønigsen , > Emacs developers , jostein@secure.kjonigsen.net, > Phillip Lord > > Being on the PATH is not a necessary condition. In the case of a > single user-facing binary, it is more efficient to register it on the > App Paths registry key. > > https://msdn.microsoft.com/en-us/library/windows/desktop/ee872121(v=vs.85).aspx This has its own problems: it requires changing the Registry if you want to modify the setting. Also, will it work from the shell prompt? I'm not sure. More generally, the above documentation talks about ShellExecuteEx, but that's not the only way programs are executed on Windows. Personally, I find all those fancy methods to be unnecessary complications at best, and a source of subtle problems at worst. PATH is there, and if needed, can be customized per user as well. If nothing else, it makes the dialog easier between Windows users and Emacs developers who are only familiar with Posix hosts. So why would we want to advise users to use those Windows-specific features? I see no compelling reasons.