iglezz,
Я правильно понял ваш код?
Код:
RequestExecutionLevel user
outfile test.exe
!include LogicLib.nsh
Section
System::Call 'netapi32::NetGetJoinInformation(i 0, *t 0 r0, *i 0 r1)i.r2'
${If} $2 != 0
MessageBox MB_OK "компьютер в домене"
${Else}
MessageBox MB_OK "компьютер НЕ в домене"
${EndIf}
SectionEnd
Я правильно понял код от MKN?
Код:
RequestExecutionLevel user
outfile test2.exe
!include LogicLib.nsh
Section
System::Call 'kernel32.dll::GetComputerNameExA(i 2, t .r0,*i ${NSIS_MAX_STRLEN} r1)i.r2'
${If} $0 == 0
MessageBox MB_OK "компьютер в домене"
${Else}
MessageBox MB_OK "компьютер НЕ в домене"
${EndIf}
SectionEnd