如何检查用户是否已选择要安装的根驱动器。如果用户选择根驱动器并提示用户选择其他路径,则不应继续安装。
现在我正在使用以下代码段,有没有更好的选择来做同样的事情 -
if (GetDir (svSelectedDir, svDirNameOnly) < 0) then
// Report the error.
MessageBox ("Cannot select the root drive for installation. Please select valid path.", SEVERE);
else
// proceed with installation.
endif;
尝试使用内置的 ROOTDRIVE 属性。但是您对"根驱动器"的定义到底是什么?