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

Unable to uninstall on Windows #2063

Closed
Shamaoke opened this issue Oct 21, 2014 · 6 comments
Closed

Unable to uninstall on Windows #2063

Shamaoke opened this issue Oct 21, 2014 · 6 comments

Comments

@Shamaoke
Copy link

I'm unable to uninstall JRuby on Windows.
The uninstallation program when running the first time raises java.io.IOException: access denied; when I run it the second time it raises another exception: java.io.FileNotFoundException: C:\jruby-1.7.13.install4j\files.log. For some reason the uninstaller removes the files.log file at the first run.
Here's the error log which the uninstallator creates after its work.


Windows 7
JRuby 1.7.13

@enebo
Copy link
Member

enebo commented Oct 21, 2014

I half wonder if the first time you ran it then it mostly removed everything but there was a running process which prevented some files from deleting (we use install4j and I don't know how well it copes in that case). The second time you run it, the uninstaller is looking for some stuff and it is gone?

I uninstall every version to install the next version on win7 (64bit) and it always works so I am just trying to come up with a plausible scenario?

@Shamaoke
Copy link
Author

I couldn't find the source of the problem, so I manually deleted the folder with the JRuby distribution and remove the branch HKEY_CURRENT_USER\Software\RubyInstaller from the Windows register. Then I again installed the same version of JRuby. The package was installed without any problems, however, when I tryed to uninstall it I got the same errors.

@enebo
Copy link
Member

enebo commented Oct 21, 2014

Thanks for replying back with that feedback.

I am not sure I have any idea how we can reduce this more but at least it sounds like my simple theory was easily proven wrong. We install into C: (like MRI ruby installers) to bypass security restrictions on saving files to our install dir. Perhaps you have a slightly more locked down system? I doubt it since you can install ok, but I am just brainstorming :)

@Shamaoke
Copy link
Author

Thank you, for support. Although we couldn't resolve the problem, we established that first: it has a certain relation to security restrictions (or issues) of my system, and second: it somewhat connected with how install4j works inside these restrictions. Anyway, it doesn't have much to do with JRuby itself.

@enebo
Copy link
Member

enebo commented Oct 21, 2014

That's true but I should look into getting a newer version of install4j setup. We are not on current major release. Perhaps they address something?

@enebo
Copy link
Member

enebo commented Jun 23, 2017

closing this due to lack of activity. Summary seems to be that our installed runtime does not uninstall in some restricted env (meaning an env which is more locked down than what a default win installation would be). We do not know what was locked down and so we cannot really try to fix this.

@enebo enebo closed this as completed Jun 23, 2017
@enebo enebo modified the milestones: Won't Fix, Invalid or Duplicate Jun 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants