PDA

View Full Version : Check PATH Length



Barvaz
10-31-2011, 07:55 AM
How can i check the PATH environment variable length before setup begins.
In case PATH's length is larger than 1024 characters (should calculate current
PATH with the predicted additions), we need to cancel the setup and ask the
user to clean his PATH.
Thanks.

hari14singh
10-31-2011, 02:36 PM
StrLength function will do that
if StrLength(PATH variable) > 1024
//Ask user