Yes. You can prevent this by setting anyone of the network drive value to that DirectoryCombo Property before run that dialog. Write a custom action to read the network drives and set any one of the drive value to that Directory property and schedule the custom action in InstallUISequence.
[CustomAction]
public static ActionResult CustomAction1(Session session)
{
DriveInfo[] drives = DriveInfo.GetDrives();
foreach (DriveInfo drvInfo in drives)
{
if (drvInfo.DriveType == DriveType.Network)
{
session["SHARED_DRIVE"] = drvInfo.Name;
break;
}
}
return ActionResult.Success;
}
<Binary Id="SharedDrive" SourceFile="TestProject.CA.dll" />
<CustomAction Id="SHAREDDRIVE" BinaryKey="SharedDrive" DllEntry="CustomAction1" Return="check" />
<InstallUISequence>
<Custom Action="SHAREDDRIVE" After="AppSearch">Not Installed</Custom>
</InstallUISequence>