The installer is creating a temporary file to list all the logical disks on the PC its running. My PC has C: (fixed), D: (cddrive), Z: (mapped network drive). Below is part of the script. PC is a Windows 7 Home Basic.
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colDrives = objWMIService.ExecQuery ("Select * From Win32_LogicalDisk")
For Each objDrive in colDrives
Wscript.Echo "Drive letter: " & objDrive.DeviceID & " driveType=" & objDrive.DriveType
if objDrive.DriveType = 4 then
Wscript.Echo "Network path: " & objDrive.ProviderName
end if
Next
So the installer only shows drive C and D when run inside of the advanced installer as a "Begin" custom action. Though if I create a seperate test.vbs file on that PCs desktop with the same script it shows all three drives C, D and Z.
Question is why is the installer dialog not seeing the Z drive (mapped network).
As always thanks for your help.
FOLLOW US
Get the latest news in Application Packaging