compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Uninstalling software will delete files by mistake

Open tangshimin opened this issue 1 year ago • 2 comments

Describe the bug When installing the software, if you want to change the default installation location, select the folder and forget to create a new folder for the software then click OK to install the software.

When uninstalling the software, all files in the installation location will be deleted.

Affected platforms

  • Desktop

Versions

  • OS version : Windows

To Reproduce

  1. Create a new folder named Program Files Test in D drive, and then create a new folder named JetBrains in In Program Files Test .
  2. Create an msi installation package for Notepad, then open notepad.msi and click Next, then click Change, then select D:\Program Files Test\ and click Next, then click Yes in the confirmation dialog. Finally, click Install.
  3. Uninstall the notepad you just installed, and JetBrains will be deleted from the Program Files Test folder.

Expected behavior

  1. The JetBrains folder should not be deleted.
  2. After selecting the installation directory D:\Program Files Test\, the Installer should change the installation directory to D:\Program Files Test\Notepad\. When installing VLC, if you select the installation directory to D:\Program Files Test\ the installer will automatically change the installation directory to D:\Program Files Test\VLC\.

tangshimin avatar Feb 06 '24 14:02 tangshimin

On the second step of the installation you select a destination dir for the app. And the dir will be deleted during an uninstallation. It is how it standard works. To change the logic mean to change standard logic of the jpackage

terrakok avatar Feb 07 '24 09:02 terrakok

Take the latest version of IDEA Ultimate as an example, after selecting the D:\Program Files Test\ folder, the installer will automatically change the installation directory to D:\Program Files Test\IntelliJ IDEA 2023.3.3\.

After the installation is complete, create a new Test folder in the D:\Program Files Test\IntelliJ IDEA 2023.3.3\ folder, then uninstall IDEA, and the new Test folder will not be deleted after uninstallation.

Many well-known software installers use this interaction, and users are used to it. I've already had two users give me feedback that their uninstallation of my software caused other software to be deleted by mistake.

tangshimin avatar Feb 07 '24 16:02 tangshimin

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Jul 14 '24 15:07 okushnikov