如何检查用户是否选择了根驱动器进行安装。如果用户选择根驱动器并提示用户选择另一个路径,则安装不应继续。
现在我正在使用以下代码,是否有更好的选择来做同样的事情 -
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;