Archive: check if dir exists


check if dir exists
Hi,
what should i do to check if a directory exists on my filesystem?


http://nsis.sourceforge.net/Docs/AppendixE.html#E.1.20


i included
!include "FileFunc.nsh"

and i check the dir in this way:


Section "main" SEC01
...
${DirState} "C:\Documents and Settings" $R0
...
SectionEnd


but i get this error:
Invalid command: ${DirState}

why? thx

add this to your code below the include statement:

!insertmacro DirState

This 'announces' the marco you want to use.

xiris


or just use:

IfFileExists c:\DIRECTORY\*.*