This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 203138 - Should user be warned if JUnit installed in userdir as installdir is not writable?
Summary: Should user be warned if JUnit installed in userdir as installdir is not writ...
Status: RESOLVED DUPLICATE of bug 211777
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks: 198739
  Show dependency tree
 
Reported: 2011-10-05 12:39 UTC by ulfzibis
Modified: 2012-04-26 12:12 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ulfzibis 2011-10-05 12:39:57 UTC
[ BUILD # : beta ]
[ JDK VERSION : <1.6.20 ]

After acknowleding JUnit to install automatically, I found it in userdir.

I don't like this:
- cleaning userdir destroys installation
- redundant installation for multiple users.

At least I want to see a check box: "Install globally"
Comment 1 Antonin Nebuzelsky 2011-10-05 12:45:58 UTC
It should be installed into install dir and fallback to userdir only if install dir is not writable. Is this not the case? Any details of your environment which could help?

Was this the case also for other installations since JUnit installation mechanism was introduced?
Comment 2 ulfzibis 2011-10-05 13:15:53 UTC
Ah, I see!
I installed NB by help of Windows RunAs facility from protected user account.
After I started NB from this user account, and was offered to add JUnit.
At this point user has no chance to get what he wants.
So ...
- At least, user should be notified about local installation.
- Better: Allow to cancel, if install dir is not writeable.
- More better: Offer a choice. On global install invoke Windows "runas.exe".
Comment 3 ulfzibis 2011-10-05 13:19:31 UTC
And some more better:
- Additionally allow user to choose already installed JUnit.
Comment 4 ulfzibis 2011-10-06 12:39:02 UTC
(In reply to comment #1)
> Was this the case also for other installations since JUnit installation
> mechanism was introduced?
Yes, same problem occurs for the CVS plugin.

In NB installer there is a check box to install the JUnit plugin, but the plugin becomes installed later after the 1st start of NB.
The problem by this is, that even the installer was launched by "Run as Administrator", the plugin is not installed globally. This could be avoided, if the plugin would be installed by the installer at same time, instead referring it to the IDE's launcher.
Comment 5 Jiri Rechtacek 2012-04-26 12:12:01 UTC

*** This bug has been marked as a duplicate of bug 211777 ***