confirmation.nsdinc 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. ; =========================================================
  2. ; This file was generated by NSISDialogDesigner 1.4.4.0
  3. ; http://coolsoft.altervista.org/nsisdialogdesigner
  4. ;
  5. ; Do not edit it manually, use NSISDialogDesigner instead!
  6. ; Modified by EraYaN (2019-09-01)
  7. ; =========================================================
  8. ; handle variables
  9. Var hCtl_confirmation
  10. Var hCtl_confirmation_ConfirmRichText
  11. ; HeaderCustomScript
  12. !include "helpers\StrSlash.nsh"
  13. ; dialog create function
  14. Function fnc_confirmation_Create
  15. ; === confirmation (type: Dialog) ===
  16. nsDialogs::Create 1018
  17. Pop $hCtl_confirmation
  18. ${If} $hCtl_confirmation == error
  19. Abort
  20. ${EndIf}
  21. !insertmacro MUI_HEADER_TEXT "Confirmation Page" "Please confirm your choices for Jellyfin Server installation"
  22. ; === ConfirmRichText (type: RichText) ===
  23. nsDialogs::CreateControl /NOUNLOAD "RichEdit20A" ${ES_READONLY}|${WS_VISIBLE}|${WS_CHILD}|${WS_TABSTOP}|${WS_VSCROLL}|${ES_MULTILINE}|${ES_WANTRETURN} ${WS_EX_STATICEDGE} 8u 7u 280u 126u ""
  24. Pop $hCtl_confirmation_ConfirmRichText
  25. ${NSD_AddExStyle} $hCtl_confirmation_ConfirmRichText ${WS_EX_STATICEDGE}
  26. ; CreateFunctionCustomScript
  27. ${StrSlash} '$0' $INSTDIR
  28. ${StrSlash} '$1' $_JELLYFINDATADIR_
  29. ${If} $_INSTALLSERVICE_ == "Yes"
  30. ${NSD_SetText} $hCtl_confirmation_ConfirmRichText "{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1043\viewkind4\uc1 \
  31. \pard\widctlpar\sa160\sl252\slmult1\b The installer will proceed based on the following inputs gathered on earlier screens.\par \
  32. Installation Folder:\b0 $0\line\b \
  33. Service install:\b0 $_INSTALLSERVICE_\line\b \
  34. Service start:\b0 $_SERVICESTART_\line\b \
  35. Service account:\b0 $_SERVICEACCOUNTTYPE_\line\b \
  36. Jellyfin Data Folder:\b0 $1\par \
  37. \
  38. \pard\sa200\sl276\slmult1\f1\lang1043\par \
  39. }"
  40. ${Else}
  41. ${NSD_SetText} $hCtl_confirmation_ConfirmRichText "{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1043\viewkind4\uc1 \
  42. \pard\widctlpar\sa160\sl252\slmult1\b The installer will proceed based on the following inputs gathered on earlier screens.\par \
  43. Installation Folder:\b0 $0\line\b \
  44. Service install:\b0 $_INSTALLSERVICE_\line\b \
  45. Jellyfin Data Folder:\b0 $1\par \
  46. \
  47. \pard\sa200\sl276\slmult1\f1\lang1043\par \
  48. }"
  49. ${EndIf}
  50. FunctionEnd