${SegmentFile}

${SegmentPrePrimary}
CopyFiles /SILENT "$SYSDIR\drivers\etc\hosts" "$EXEDIR\App\DefaultData\settings"
nsExec::Exec '"$EXEDIR\App\DefaultData\\settings\BlockHost.bat"'
Pop $0
!macroend

${SegmentUnload}
CopyFiles /SILENT "$EXEDIR\App\DefaultData\settings\hosts" "$SYSDIR\drivers\etc"
Delete "$EXEDIR\App\DefaultData\settings\hosts"
!macroend