Skip to content

Uninstall via Windows settings not working #1456

@hohwille

Description

@hohwille

Actual behavior

I installed IDEasy via MSI on Windows11 x64.
Later I wanted to uninstall it via Windows settings > apps.
This reported success and from the apps the entry IDEasy had disappeared.
However, this seems to everything that happened:

After that I opened a git-bash and got this:

$ ide -v
2025.08.001-08_19_02-SNAPSHOT

So what did the uninstall do?

$ cat uninstall.log

$ cat ~/.bashrc
source "$IDE_ROOT/_ide/installation/functions"

So it seems it do nothing at all except removing the entry from apps.
Next I did this:

$ ide uninstall
Sub-command uninstall without any further arguments will perform the entire uninstallation of IDEasy.
Since this is typically not to be called manually, you may have forgotten to specify the tool to install as extra argument.
The current command will uninstall IDEasy from your computer. Are you sure?
Option 1: yes
Option 2: no
yes
Removing IDEasy from .bashrc
Removing obsolete line from .bashrc: source "$IDE_ROOT/_ide/installation/functions"
Removing IDEasy from .zshrc
Removing obsolete line from .zshrc: source "$IDE_ROOT/_ide/installation/functions"
Found user PATH=%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;C:\Users\User\projects\_ide\installation\bin
To prevent windows file locking errors, we perform an asynchronous deletion of C:\Users\User\projects\_ide in background now.
Please close all terminals and wait a minute for the deletion to complete before running other commands.
Deleting download cache from C:\Users\User\Downloads\ide
IDEasy has been uninstalled from your system.
ATTENTION:
In order to prevent data-loss, we do not delete your projects and git repositories!
To entirely get rid of IDEasy, also check your IDE_ROOT folder at:
C:\Users\User\projects
$ cat ~/.bashrc

$ ls $IDE_ROOT
uninstall.log

Also the IDE_ROOT variable was removed from Windows settings together with the PATH entry for IDEasy.
So the uninstall logic inside our CLI works fine and as expected, but it is not called from the MSI during uninstall.

Reproduce

  1. Install IDEasy via MSI
  2. Go to Windows settings > apps and search for IDEasy.
  3. Select the 3 dots next to IDEasy and click Uninstall.

Expected behavior

IDEasy gets uninstalled properly (ide -f uninstall).

IDEasy status

$ ide -p status
IDE_ROOT is set to ~/projects
You are not inside an IDE project: ~
You are online.
Your version of IDEasy is 2025.08.001-08_19_02-SNAPSHOT.
You are using a SNAPSHOT version of IDEasy. For stability consider switching to a stable release via 'ide upgrade --mode=stable'
Your version of IDEasy is 2025.08.001-08_19_02-SNAPSHOT but version 2025.08.001-20250819.024238-5 is available. Please run the following command to upgrade to the latest version:
ide upgrade
Your operating system is windows(10.0)@x64 [Windows 11@amd64]
Successfully completed ide (status)

Related/Dependent issues

Comments/Hints

I assume this is only a very small bug here:

Value='"[%SystemFolder]cmd.exe" /c "[%IDE_ROOT]\_ide\installation\bin\ideasy.exe -f uninstall > [%IDE_ROOT]\uninstall.log"'

IMHO the INSTALLFOLDER is wrong here so we are pointing to a non-existing file/program and therefore nothing happens and we get an empty log file.

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Team Review

Relationships

None yet

Development

No branches or pull requests

Issue actions