GNU bug report logs -
#72781
Emacs 29 for Windows: Uninstall.exe deletes everything in the same folder as it.
Previous Next
To reply to this bug, email your comments to 72781 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#72781
; Package
emacs
.
(Sat, 24 Aug 2024 05:56:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Sylvan <sylvannesbitt <at> proton.me>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 24 Aug 2024 05:56:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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."
Yours faithfully,
Sylvan (they/them)
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#72781
; Package
emacs
.
(Sat, 24 Aug 2024 06:29:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 72781 <at> debbugs.gnu.org (full text, mbox):
> Date: Fri, 23 Aug 2024 22:06:59 +0000
> From: Sylvan via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> 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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#72781
; Package
emacs
.
(Sat, 24 Aug 2024 15:08:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 72781 <at> debbugs.gnu.org (full text, mbox):
Tags: 72781
Merge: 68756
thank you
On Sat, Aug 24, 2024 at 1:27 AM Eli Zaretskii <eliz <at> gnu.org> wrote:
>
> > Date: Fri, 23 Aug 2024 22:06:59 +0000
> > From: Sylvan via "Bug reports for GNU Emacs,
> > the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> >
> >
> > 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.
>
Sylvan,
I believe this is the same problem as reported in bug#68756, hence I
am merging them. That bug report contains a patch which was tested
(but not installed) back in Feburary, one of three patch-sets for the
Windows installer/uninstaller that have been awaiting my attention far
too long. I plan to retest these (starting with this one) this
morning with intent to apply as soon as I can confirm they appear to
resolve the (most important, incorrect file deletion) problem;
apologies I wasn't able to resolve this before you were bitten.
Here's a link to the other report, containing the patch to avoid
uninstaller deleting versions other than that from the corresponding
installer:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68756
Are you able to build Emacs locally to test?
I would normally upload a set of binaries incorporating my patches to
my own website to make it easier for others who are not in a position
to compile Emacs for Windows; however, if you plan to build your own
Emacs to test my fixes in this case, I might skip that in name of
moving a little more quickly. (I have a Windows machine separate from
my "development environment" where I'm able to test myself however
both of these machines are Windows 10 - I don't have anything running
Windows 11 at my disposal. It would be lovely to get confirmation the
fix works under Windows 11 (although I see no reason it should not).
Eli,
I would like to install this directly to the release branch. I
believe we had discussed doing so when the release branch was for
Emacs 29 but please tell me if this must go to the development branch,
instead. As I suspect you are aware, the change here is specifically
to the NSIS script within admin/nt/dist-build and thus cannot affect
other than the installer for Windows. Moreover, as this issue
potentially causes Emacs to unexpectedly delete files I think it is
rather serious. If my changes cause further problems I expect to "fix
and fall forward"; so, while I'm confident -existing patch, previously
tested- it's possible this will not be the "one-and-done" I expect.
Please let me know I must apply to the main branch (for Emacs 31), instead.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#72781
; Package
emacs
.
(Sat, 24 Aug 2024 15:31:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 72781 <at> debbugs.gnu.org (full text, mbox):
> From: Corwin Brust <corwin <at> bru.st>
> Date: Sat, 24 Aug 2024 10:06:11 -0500
> Cc: 72781 <at> debbugs.gnu.org
>
> I would like to install this directly to the release branch. I
> believe we had discussed doing so when the release branch was for
> Emacs 29 but please tell me if this must go to the development branch,
> instead. As I suspect you are aware, the change here is specifically
> to the NSIS script within admin/nt/dist-build and thus cannot affect
> other than the installer for Windows. Moreover, as this issue
> potentially causes Emacs to unexpectedly delete files I think it is
> rather serious. If my changes cause further problems I expect to "fix
> and fall forward"; so, while I'm confident -existing patch, previously
> tested- it's possible this will not be the "one-and-done" I expect.
>
> Please let me know I must apply to the main branch (for Emacs 31), instead.
It's okay to install this on the emacs-30 release branch, thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#72781
; Package
emacs
.
(Sat, 24 Aug 2024 16:09:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 72781 <at> debbugs.gnu.org (full text, mbox):
On Sat, Aug 24, 2024 at 10:26 AM Eli Zaretskii <eliz <at> gnu.org> wrote:
>
> > From: Corwin Brust <corwin <at> bru.st>
> > Date: Sat, 24 Aug 2024 10:06:11 -0500
> > Cc: 72781 <at> debbugs.gnu.org
> >
> > Please let me know I must apply to the main branch (for Emacs 31), instead.
>
> It's okay to install this on the emacs-30 release branch, thanks.
>
Upon further review, I find the patch in question is applied to/for
emacs-30. I have updates (via pacman) to make to my system in order
to publish snapshots for emacs-30 to GNU FTP/mirrors (to ensure they
work well with now current version of our dependencies). I'm starting
on that now. Meanwhile...
Sylvan,
Would you be able (comfortable) testing with this set of binaries
from/for Emacs 30? I believe the should resolve the "unexpected
delete of other Emacsian when running installer" issue.
https://corwin.bru.st/emacs-30/emacs-30-latest/
Note, my local CI is paused while I do the aforementioned updates, but
here's an invariant link that will exist for at least seventeen days,
JIC:
https://corwin.bru.st/emacs-30/emacs-30-4211d8
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#72781
; Package
emacs
.
(Sun, 25 Aug 2024 03:10:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 72781 <at> debbugs.gnu.org (full text, mbox):
Corwin,
> I believe this is the same problem as reported in bug#68756, hence I am merging them.
Yes, it sounds like the same problem.
> Are you able to build Emacs locally to test?
I am happy to give it a try! I will need to figure out the setup first, but I know some people who can probably help me if I have trouble with it. Should I use MinGW32 for consistency?
- Sylvan (they/them)
This bug report was last modified 299 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.