Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Path Validation


1 reply to this topic

is.arun

is.arun
  • Members
  • 5 posts

Posted 29 October 2004 - 09:08

Hi,

I need to validate the destination path. Here is the scenario.

Suppose the user gives c:\FolderName, then the installation happens in the specified folder.

But if he gives c:FolderName, the installation happens in the WINNT folder.

how can i prevent this?

Thanks.

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 29 October 2004 - 13:56

Well you could do something as simple as call ExistsDir to see if the destination exists.

If it doesn't, then call CreateDir and check the result as it will fail if the path is illegal/invalid.
user posted image