From: SourceForge.net <no...@so...> - 2012-01-04 19:02:22
|
Bugs item #3440774, was opened at 2011-11-21 08:12 Message generated for change (Comment added) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373085&aid=3440774&group_id=22049 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: None Status: Closed Resolution: Duplicate Priority: 4 Private: No Submitted By: Eddie C. () Assigned to: Amir Szekely (kichik) Summary: $DESKTOP doesn't point to the right folder always Initial Comment: Hello, I can confirm the problem described in "$DESKTOP doesn't point to the right folder always - ID: 2210441". Details: NSIS version: 2.46 Operating System: Windows 7 Professional 64 bit Step to reproduce: 1. Relocate default folder to another drive: (for example for the user "John": C:\Users\John\Desktop -> E:\Users\John\Desktop) 2. Run NSIS Script with a macro like: CreateShortCut "$DESKTOP\MyShortcut.lnk" "$INSTDIR\MyBinary.exe" 3. You can observe that link is missing on desktop but is present into the wrong path (C:\Users\John\Desktop) Thank you for support Eddie C. ---------------------------------------------------------------------- Comment By: Eddie C. () Date: 2012-01-04 11:02 Message: Hello Anders, thank you for reply and suggestions. I downloaded both utilities (i386 and x64) and this is the result: Known Folder Browser (x64): E:\Users\Eddie\Desktop Known Folder Browser (i86): E:\Users\Eddie\Desktop NSIS creates desktop link in C:\Users\Eddie\Desktop :(. This is the code in NSIS script: CreateShortCut "$DESKTOP\Test Application.lnk" "$INSTDIR\test.exe" Thank you for support Eddie ---------------------------------------------------------------------- Comment By: Anders (anders_k) Date: 2011-12-30 10:56 Message: Could you try the x86 AND x64 versions of http://weblogs.asp.net/kennykerr/archive/2006/11/03/Known-Folders-Browser-1.0-_2800_for-Vista-and-Beyond_2900_.aspx and see if you can get it to make the same mistake in the x86 version? ---------------------------------------------------------------------- Comment By: Eddie C. () Date: 2011-12-22 09:05 Message: Hello Anders, thank you for support. I can confirm that I followed your way changing the Desktop folder location. I never edited the registry directly. The only thing that is different is that I'm using Win7 x64 while you tested x86. Could be a different behaviour of SHGetFolderPath in x64? Thank You, Eddie C. ---------------------------------------------------------------------- Comment By: Anders (anders_k) Date: 2011-11-21 09:27 Message: Works for me: I tried 2.46 and current SVN on Win7 x86. I right-clicked the desktop folder in my profile and changed the path in the Location tab. Running a simple test script after clicking apply shows the correct path in $Desktop. NSIS calls SHGetFolderPath(CSIDL_DESKTOPDIRECTORY). How did you move the folder? Did you edit the registry directly? See also: http://blogs.msdn.com/b/oldnewthing/archive/2003/11/03/55532.aspx ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373085&aid=3440774&group_id=22049 |