Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Try to remove bundled jre after uninstall #4001

Closed
wants to merge 6 commits into from

Conversation

Siedlerchr
Copy link
Member

@Siedlerchr Siedlerchr commented May 1, 2018

@halirutan I added an option to remove the dir "jre" of the bundled installer. Can you please try this out?


  • Change in CHANGELOG.md described
  • Tests created for changes
  • Manually tested changed features in running JabRef
  • Screenshots added in PR description (for bigger UI changes)
  • Ensured that the git commit message is a good one
  • Check documentation status (Issue created for outdated help page at help.jabref.org?)

@Siedlerchr Siedlerchr changed the title Try to uninstall with not same application id Try to remove bundled jre after uninstall May 1, 2018
@Siedlerchr Siedlerchr added build-system status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers labels May 1, 2018
@Siedlerchr Siedlerchr requested review from LinusDietz and halirutan May 1, 2018 10:40
@Siedlerchr
Copy link
Member Author

@halirutan It would be really nice if you could test this as I don't have a Mac OS on hand

@halirutan
Copy link
Collaborator

@Siedlerchr I tested in on my Mac and it doesn't seem to work. I created two test files inside the JabRef.app folder and after a re-installation of JabRef, where I clicked on update existing installation, they are still there

patrick@heisenberg:/Applications/JabRef.app$ find . -name "*.txt" -type f
./Contents/java/app/jre/text.txt
./Contents/vmoptions.txt
./Contents/test.txt

What now?

@LinusDietz
Copy link
Member

image
I have normally installed jabref with install4j from the .dmg, but do not have this jre folder.
(I also do not have any problems with freezes.)

@halirutan
Copy link
Collaborator

@LinusDietz My comment is misleading. The major problem is that some users have old installations, where the JRE folder is indeed inside the app. This JRE seems to have priority and makes that they cannot start JabRef because the Java version is wrong. Therefore, we decided to remove the content completely during a re-installation.

I have created test-folders inside the JabRef.app folder to see if they get removed.

@tobiasdiez tobiasdiez removed the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label May 31, 2018
@tobiasdiez tobiasdiez changed the title Try to remove bundled jre after uninstall [WIP] Try to remove bundled jre after uninstall May 31, 2018
@tobiasdiez tobiasdiez added this to the v4.3 milestone May 31, 2018
@Siedlerchr
Copy link
Member Author

Siedlerchr commented Jun 5, 2018

I looked a bit through the help files, and it seems although update bundled jre is checked , the action is not executed when you choose Update application.

@LinusDietz
Copy link
Member

So I was playing around with Install4J and the Mac installer and could not manage to delete any files or directories via these install4j uninstall directives.. Probably, we missed something... @Siedlerchr's approach in the PR seems to be the right way to go, but somehow it doesn't work.

@stefan-kolb
Copy link
Member

Is this #4103?

@stefan-kolb
Copy link
Member

Without knowing the fodler where the old JRE resides @LinusDietz cannot know which folder to delete!

@halirutan
Copy link
Collaborator

I suggest contacting Install4J's support and ask them for help. I don't know either if my test earlier does even resemble the situation that some users have. Our goal is to completely delete the contents of the old directory before filling it with the files of the new version, right? I'm certain the support can help @Siedlerchr and I wouldn't know, what else to do.

@tobiasdiez
Copy link
Member

tobiasdiez commented Jun 30, 2018

@LinusDietz @stefan-kolb according to #3587 (comment) the problem was/is that the the Applications/JabRef.app folder was not cleared properly upon un/reinstall.

* upstream/master: (468 commits)
  Fix error prone warnings (#4290)
  Fix freeze on import into current library (#4299)
  Upgrade gradle to 4.10 update xmlunit and postgres
  update xmlunit-matchers from 2.6.0 -> 2.6.1
  update gradle build-scan from 1.15.2 -> 1.16
  checkstyle
  execute changes only if disk db present
  Fix Export to clipbaord action (#4286)
  fix npe in Merge entries dialog
  Add minimal height for entry editor (#4283)
  Fix exceptions when trying to change settings (#4284)
  Added a comment for the purpose of the class (#4282)
  Fix NPE when importing from CLI (#4281)
  Fix display of key patterns
  convert bibtexkeypatterndlg to javafx as well (#4277)
  Style preference sections using css
  Fix a few style issues
  Changed the behavior of the field formatting dialog (#4275)
  Fix checkbox display
  Remove small font size
  ...
according to doc this refers to the correct dir
@Siedlerchr
Copy link
Member Author

I think I found the issue @halirutan Would be nice if you could test this with the new build again.
I changed the installatio dir to conten dir variable which seems to the right one according to the doc for macos bundled stuff

@Siedlerchr Siedlerchr removed this from the v4.4 milestone Oct 2, 2018
@LinusDietz
Copy link
Member

This still doesn't work. Since we all tried to make it work I'd say we close this now.

@LinusDietz LinusDietz closed this Dec 28, 2018
@stefan-kolb stefan-kolb deleted the installeruninstall branch August 23, 2019 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants