|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
|
#1 |
|
Senior Member
Join Date: Jul 2008
Posts: 157
|
I have been using the very useful GetDrives function for a while, but only today I discovered that while it continues to work perfectly on Windows XP, it doesn't list network-mapped drives on Windows 7.
(I tried both the default "ALL" and the more specific "FDD+HDD+CDROM+NET+RAM" option) Is this known behavior? Any suggestion how to enumerate all drives (including mapped network shares) on Windows 7? |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Could it be related to elevation? http://forums.winamp.com/showthread.php?t=339478
|
|
|
|
|
|
#3 |
|
Major Dude
Join Date: Mar 2003
Posts: 571
|
GetDrives works on my Windows 7 Professional SP1 (64-bit) system, Here are the results from a test using "NET":
code: Tested using NSIS 2.45 using RequestExecutionLevel "user" |
|
|
|
|
|
#4 | ||
|
Senior Member
Join Date: Jul 2008
Posts: 157
|
Quote:
Quote:
I will test this with user and see what happens. (BTW, I am using NSIS 2.45, too. I should upgrade to the latest 2.46, I know.) |
||
|
|
|
|
|
#5 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
|
|
|
|
|
|
#6 |
|
Major Dude
Join Date: Mar 2003
Posts: 571
|
Anders is right - if you elevate then GetDrives can only see the drives mapped by the administrative rights account.
My admin account does not have any mapped drives so when I re-ran my test with RequestExecutionLevel "admin" the GetDrives NET option did not find anything. |
|
|
|
|
|
#7 |
|
Major Dude
Join Date: Mar 2003
Posts: 571
|
I forgot to mention that I ran my test from a standard account, not an administrator account.
|
|
|
|
|
|
#8 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#9 | |
|
Senior Member
Join Date: Jul 2008
Posts: 157
|
Quote:
|
|
|
|
|
![]() |
|
|||||||
| Tags |
| getdrives, windows7 |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|