Skip to content
⌘ NSIS Forum Archive

How to detect if active directory is installed

5 posts

Balder#

How to detect if active directory is installed

Anyone know how to detect if active directory is installed?
Thanks!
Joel#
well, for detecting a created directory try use the IfFileExists instruction. Since it uses the API for finding folders...

Name test
OutFile test.exe
XPStyle on
ShowInstDetails show

!define TESTDIR "C:\lobolunar\Hola"

Section -default
DetailPrint "Do you have ${TESTDIR}?"
IfFileExists ${TESTDIR} Yes No

Yes:
StrCpy $0 "Yes"
Goto End

No:
StrCpy $0 "No"
Goto End

End:
DetailPrint $0
SectionEnd
Hope that's what your looking for, the word active freaks me up 🧟
Anders#
i dont know how 2 detect Active Directory, but to check if it is a domain controller, use GetVersionEx (using the system plugin)