Product Version = NetBeans IDE Dev (Build 201211020001)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_09
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.5-b02
Problem (applies to Windows OS):
To keep a user's profile small (and thus to reduce boot time if it is a server side profile), NB's userdir and cachedir have to be placed outside the user's profile (%userprofile%).
a) persists this information, to re-use it after a new version is installed
b) query this information durig install
a) this information might be stored in %userprofile%/etc/netbeans.conf
currently this is not supported
The default location and name of the userdir . Note that this entry is only valid in the global configuration file. (It cannot be redefined in the local netbeans.conf file, because the launcher already needs to know the location of the userdir when the local netbeans.conf file is being processed.) " [http://wiki.netbeans.org/FaqNetbeansConf]
solution: since %userprofile% is different to userdir and only depends on the user who is logged in, it must be possible to read this file just after the global conf file. Individual setting override global settings.
b) simply query it in installation wizzard.
Apply two text fields for userdir and cachedir and populate current values as default. Let the user choose different locations (similar to choose JDK)
If this will be to much information query, then replace JDK selection by a button "customize". If th user pressed this button, a new dialog opens to select JDK, userdir, cachedir
I prefer to implement a) and b). If only one can be implemented, I prefer a) over b)