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.
Public desktop shortcut created using hardcoded path I had configured my Windows installation using sysprep to store user profiles on a different drive. My user profiles are located on my U drive: U:\Users\ On my C drive, I have no such Users folder. However, after I installed NetBeans, I had noticed that a Users folder had appeared on my C drive. The only file in the C:\Users\ folder is the NetBeans desktop shortcut: C:\Users\Public\Desktop\NetBeans IDE 7.1.2.lnk I am assuming that the path for creating the desktop shortcut was hardcoded for the C drive. Does anyone know how if this were the case?
Do you have Public folder on driver U? (U:\Users\Public) I've never used sysprep and don't know how it exactly works, so maybe I will need your assistance with it. I can imagine that sysprep configures windows to make all user dirs under U:\Users\ but it's important where it locates Public folder.
Yes. I have a U:\Users\Public\ folder. I think that it is automatically created during Windows installation, so it should be there. Some applications have already added shortcuts correctly in U:\Users\Public\Desktop\. If you are interested in my Users setup, I have used these tutorials. -- Windows 8: How to Relocate User Profiles to another Partition or Disk in Windows 8: http://www.eightforums.com/tutorials/4275-user-profiles-relocate-another-partition-disk.html -- Windows 7: How to Create User Accounts on another Partition or Disk During Windows 7 Installation: http://www.sevenforums.com/tutorials/124198-user-profiles-create-move-during-windows-7-installation.html --
Could you tell me what value do you have in registry - HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Common Desktop? This is the place where from NetBeans are getting path where to create shortcut. Actually it isn't hardcoded :-)
"Common Desktop" is "C:\Users\Public\Desktop". I also looked in Wow6432Node, and it is the same. This is bad. Sysprep missed some parts of the registry. I think that it will be a good idea for me to create a C:\Users\ junction to U:\Users\. --- Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders] "OEM Links"="C:\\ProgramData\\OEM\\Links" "CommonVideo"="C:\\Users\\Public\\Videos" "Common Documents"="C:\\Users\\Public\\Documents" "Common Startup"="C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Startup" "Common AppData"="C:\\ProgramData" "CommonPictures"="C:\\Users\\Public\\Pictures" "Common Desktop"="C:\\Users\\Public\\Desktop" "CommonMusic"="C:\\Users\\Public\\Music" "Common Start Menu"="C:\\ProgramData\\Microsoft\\Windows\\Start Menu" "Common Programs"="C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs" "Common Templates"="C:\\ProgramData\\Microsoft\\Windows\\Templates" "Common Administrative Tools"="C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders] "OEM Links"="C:\\ProgramData\\OEM\\Links" "CommonVideo"="C:\\Users\\Public\\Videos" "Common Administrative Tools"="C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools" "Common Documents"="C:\\Users\\Public\\Documents" "Common Startup"="C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Startup" "Common AppData"="C:\\ProgramData" "CommonPictures"="C:\\Users\\Public\\Pictures" "Common Desktop"="C:\\Users\\Public\\Desktop" "CommonMusic"="C:\\Users\\Public\\Music" "Common Start Menu"="C:\\ProgramData\\Microsoft\\Windows\\Start Menu" "Common Programs"="C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs" "Common Templates"="C:\\ProgramData\\Microsoft\\Windows\\Templates" ---
That's what I expected. So there is nothing to fix. Anyway thank you for your report and quick answers. Closed as WONTFIX