jatinkulkarni
27th September 2007 19:37 UTC
${DirState} give compile error.
Hi,
I am trying to use ${DirState} to see if a particular directory already exists.But I am getting compile error "Invalid command: ${DirState}". Here is the line of code which produces compile error.
${DirState} "C:\Program Files\MySQL\" $Dir_State
I have included FileFunc.nsh.
regards,
Jatin
Afrow UK
27th September 2007 19:50 UTC
What is wrong with IfFileExists "C:\Program Files\MySQL\*.*"
Stu
jatinkulkarni
27th September 2007 20:01 UTC
I just want to check whether a directory exists or not, even if there are no files in the directory. That is why I am trying to use ${DirState}
Afrow UK
27th September 2007 20:13 UTC
IfFileExists with *.* will actually work whether or not the folder contains files.
Stu