Skip to content
⌘ NSIS Forum Archive

${DirState} give compile error.

4 posts

jatinkulkarni#

${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
jatinkulkarni#
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}