jan icon indicating copy to clipboard operation
jan copied to clipboard

bug: Windows installer does not delete application data

Open aa956 opened this issue 6 months ago • 2 comments

Jan version

0.6.2

Describe the Bug

Despite setting a checkbox for "Delete the application data" in the installer all of the settings and chat logs are kept.

After uninstall:

PS C:\temp> dir $env:appdata\jan

    Directory: C:\Users\**username**\AppData\Roaming\Jan

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          26.06.2025    12:28                data
-a---          26.06.2025    11:05             73 settings.json

PS C:\temp>

Probably this part of the NSIS template is incorrect.

Steps to Reproduce

  1. Install on Windows.
  2. Configure some models, chat
  3. Uninstall selecting "Delete the application data"
  4. Reinstall
  5. All settings and chats are kept

Screenshots / Logs

Image

What is your OS?

  • [ ] MacOS
  • [x] Windows
  • [ ] Linux

aa956 avatar Jun 26 '25 09:06 aa956

Or is it expected behavior?

Looking at documentation looks like it is: https://jan.ai/docs/desktop/windows#step-2-clean-up-remaining-files

aa956 avatar Jun 26 '25 13:06 aa956

hi @aa956 actually this is the expected behavior (not clean up the application data folder) we would like to maintain the consistency behavior across OSes. cc @Minh141120 here as iirc, we have a patch here but it doesn't get merged yet https://github.com/menloresearch/jan/tree/refs/heads/fix/uninstaller-app-data-windows

Thanks again for the report

david-menloai avatar Jun 26 '25 23:06 david-menloai