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 215908 - Desktop shortcut created using hardcoded path
Summary: Desktop shortcut created using hardcoded path
Status: RESOLVED WONTFIX
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1.2
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-24 23:48 UTC by XP1
Modified: 2012-07-26 11:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description XP1 2012-07-24 23:48:45 UTC
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?
Comment 1 Libor Fischmeistr 2012-07-25 12:37:06 UTC
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.
Comment 2 XP1 2012-07-25 12:53:20 UTC
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

--
Comment 3 Libor Fischmeistr 2012-07-26 11:00:10 UTC
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 :-)
Comment 4 XP1 2012-07-26 11:18:39 UTC
"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"

---
Comment 5 Libor Fischmeistr 2012-07-26 11:32:41 UTC
That's what I expected. So there is nothing to fix.

Anyway thank you for your report and quick answers.

Closed as WONTFIX