From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#72781: Emacs 29 for Windows: Uninstall.exe deletes everything in the same folder as it. Date: Sat, 24 Aug 2024 09:27:14 +0300 Message-ID: <861q2epha5.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39733"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72781@debbugs.gnu.org To: Sylvan , Corwin Brust Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 24 08:28:28 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1shkGC-000A5j-0X for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Aug 2024 08:28:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1shkFy-0003zk-Sy; Sat, 24 Aug 2024 02:28:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1shkFy-0003zc-6V for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2024 02:28:14 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1shkFx-00068B-Tb for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2024 02:28:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=SXBE4VOJ219UNFBCth9rm9A/rsYTvI4FgBDaOqoMejI=; b=JS1KiAiKA4z3Z6FFtSP9412idVuqmkCRyvvJ+FHpmCSQpCcOyHD1zHYOmPu9Ft30hL7t3xxel/FRNyEXcSmxHmqGlakdaA00NFx4CxyRSwgN6sMULU2YL3ADT0NC5Sf9cAMTMYCEkTfW9h5xsNT5Lx2xjNi0INyS1d+yIbcLUc1zLBMrnzIuWFAYVvHpLQJC6mnZvzvVN7+WxNkC7Dg3NTrvz3EvnJa61qiA8AEWeIBx6RK0f9m4AQK5EbhwNyCPiD6zdxLyQqXPNkT/iI8ny7yWK3zpapRXXSkITbzEg7lNT7iL8UFkAb7R6HG4UNyMa+DX6V2BCOL6/EGCYQbSRg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1shkGk-0003Qe-0f for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2024 02:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Aug 2024 06:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72781 X-GNU-PR-Package: emacs Original-Received: via spool by 72781-submit@debbugs.gnu.org id=B72781.172448089213107 (code B ref 72781); Sat, 24 Aug 2024 06:29:01 +0000 Original-Received: (at 72781) by debbugs.gnu.org; 24 Aug 2024 06:28:12 +0000 Original-Received: from localhost ([127.0.0.1]:40305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shkFw-0003PK-7l for submit@debbugs.gnu.org; Sat, 24 Aug 2024 02:28:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shkFu-0003P3-Jc for 72781@debbugs.gnu.org; Sat, 24 Aug 2024 02:28:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1shkF2-00064S-Vi; Sat, 24 Aug 2024 02:27:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=SXBE4VOJ219UNFBCth9rm9A/rsYTvI4FgBDaOqoMejI=; b=C9+y8xo2yHg2 FI/deSFvqfW7JA2fNOi9YOOxp+kpPwmhqcsP7QMJS/0sgeokFkJDHMpO7MjbKePqGMPbtCJqX3xd7 jdtT+1bO9L6gPH6vnmsBxihybC+UxKZlIzc+AM9n/VEzotWwatksqCeV4yvPFFv+sQ20jiJg0RczP B5/TWTsc7xkDTvqCBLc/u5enFsGw6Bw05SErnPPKJEwCQVgihH/sgCLz9FpAjk21moR4B6vGxHzR3 UHeFQf1pw5vU3sGNWOKXRZCFymIB3I8pBzZrTGcJSDk/otiuI7wCkzaFQQ5nn/5rH5F1xK6QK3dOm eGDCp/GBflm+OgQzYIdyXQ==; In-Reply-To: (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:290623 Archived-At: > Date: Fri, 23 Aug 2024 22:06:59 +0000 > From: Sylvan via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Hello! I've encountered an issue with the uninstaller for Emacs 29 for Windows. > > Description: > When using Uninstall.exe, which is provided by the installation wizard, all files/folders in its folder are deleted. > I would expect Uninstall.exe to only delete the emacs-29.something folder and itself. > When I encountered the bug with Emacs 29.1_2, Uninstall.exe was in my home directory, and deleted all its > contents but not my home directory itself. When I tested Emacs 29.4 to see if the bug was still present, I > installed Emacs 29.4 into a test folder (containing a test file). This time, the uninstaller deleted the test folder > it was in > There is a reddit thread from January 2023 about this issue, with some comments from March and July this > year reporting the same thing: > https://reddit.com/r/emacs/comments/10ickog/tried_to_uninstall_emacs_destruction_happened/ > > Emacs version information: > Emacs 29.1_2 and 29.4 for Windows, as installed with emacs-29.x-installer.exe (I have not tested other > versions of Emacs 29.x or installation methods). > > System information: > Edition: Windows 11 Home > Version: 22H2 > OS build: 22621.4037 > System type: 64-bit operating system, x64-based processor > > Steps to reproduce (with Emacs 29.4): > 1. Create a new folder somewhere within your home directory (I haven't tested outside of it). > 2. Within this folder, create a test file and/or folder, which will eventually be deleted by the uninstaller. > 3. Download emacs-29.4-installer.exe from https://ftp.gnu.org/gnu/emacs/windows/emacs-29/ > 4. Go through the setup wizard. When choosing the install location, save it in the folder you made in step 1. > 5. Allow Emacs to install. In your step 1 folder, you should now have: > - A folder named emacs-29.4 > - Uninstall.exe > - Any test files and folders you added > 6. Run Uninstall.exe (just by double-clicking the file and pressing Uninstall) > 7. Go up one folder. > > Expected behaviour after Step 6: > The emacs-29.4 folder and Uninstall.exe are gone, but any other files or folders remain. > Actual behaviour after Step 6: > All files and folders in your test file are gone. > > Expected behaviour after Step 7: > The test folder made in Step 1 still exists. > Actual behaviour after Step 7: > The test folder made in Step 1 has been deleted. > Upon pressing the back button in Windows Explorer, I received an error message saying > "C:\Users\redacted\Downloads\testfolder is unavailable. If the location is on this PC, make sure the device or > drive is connected or the disc is inserted, and then try again. If the location is on a network, make sure you're > connected to the network or Internet, and then try again. If the location still can't be found, it might have been > moved or deleted." Adding Corwin, who provided the Windows installer.