Hi,
I have issue in validating the installation path given in Path Edit control of FolderDlg
As per our requirement, during the setup user should only enter C: or D: etc.(i.e. drive name followed by colon) in Path Edit control of FolderDlg (Browse button should not be available)
So inside the Path Edit control we want to put some validations. as follows
1) If User enters some drive name name only (e.g C) or some drive name followed by colon and backsplash (e.g. C:\) and "Next" button on FolderDlg is clicked, then error message should be displayed as "Please enter drive name followed by colon"
2) If user enters some drive name that is not available on computer, an Error Message/Dialog should appear when "Next" button on FolderDlg is clicked.
e.g. If Computer has only C and D drives but when user enters E: in Path Edit, when "Next" is clicked, error message should be displayed "Unrecognized Drive, please try again."
How to validate above two conditions ?
FOLLOW US
Get the latest news in Application Packaging