compose-multiplatform
compose-multiplatform copied to clipboard
Uninstalling software will delete files by mistake
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
- Create a new folder named
Program Files Testin D drive, and then create a new folder namedJetBrainsin InProgram Files Test. - 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. - Uninstall the notepad you just installed, and JetBrains will be deleted from the
Program Files Testfolder.
Expected behavior
- The JetBrains folder should not be deleted.
- After selecting the installation directory
D:\Program Files Test\, the Installer should change the installation directory toD:\Program Files Test\Notepad\. When installing VLC, if you select the installation directory toD:\Program Files Test\the installer will automatically change the installation directory toD:\Program Files Test\VLC\.
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
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.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.