Archive: How to detect if active directory is installed


How to detect if active directory is installed
Anyone know how to detect if active directory is installed?
Thanks!


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 :igor:

Oh no, I mean Active Directory - if it is a domain controller.
Thanks!


i dont know how 2 detect Active Directory, but to check if it is a domain controller, use GetVersionEx (using the system plugin)

http://msdn.microsoft.com/library/de...infoex_str.asp


Active Directory is what I really want to find out.
Thanks!