How to check if user has selected the root drive for installation. Installation should not proceed if user selects the root drive and prompt user to select another path.
Right now i am using following piece of code, is there better option to do same thing -
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;
Try using the built-in ROOTDRIVE property. But what exactly is your definition of 'root drive' ?