setuptype.nsdinc 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. ; =========================================================
  7. ; handle variables
  8. Var hCtl_setuptype
  9. Var hCtl_setuptype_InstallasaServiceLabel
  10. Var hCtl_setuptype_InstallasaService
  11. Var hCtl_setuptype_BasicInstallLabel
  12. Var hCtl_setuptype_BasicInstall
  13. Var hCtl_setuptype_Font1
  14. ; dialog create function
  15. Function fnc_setuptype_Create
  16. ; custom font definitions
  17. CreateFont $hCtl_setuptype_Font1 "Microsoft Sans Serif" "8.25" "700"
  18. ; === setuptype (type: Dialog) ===
  19. nsDialogs::Create 1018
  20. Pop $hCtl_setuptype
  21. ${If} $hCtl_setuptype == error
  22. Abort
  23. ${EndIf}
  24. !insertmacro MUI_HEADER_TEXT "Setup Type" "Control how Jellyfin is installed."
  25. ; === InstallasaServiceLabel (type: Label) ===
  26. ${NSD_CreateLabel} 8u 71u 280u 28u "Install Jellyfin as a service. This method is recommended for Advanced Users. Additional setup is required to access network shares."
  27. Pop $hCtl_setuptype_InstallasaServiceLabel
  28. ; === InstallasaService (type: RadioButton) ===
  29. ${NSD_CreateRadioButton} 8u 54u 280u 15u "Install as a Service (Advanced Users)"
  30. Pop $hCtl_setuptype_InstallasaService
  31. ${NSD_AddStyle} $hCtl_setuptype_InstallasaService ${WS_GROUP}
  32. ; === BasicInstallLabel (type: Label) ===
  33. ${NSD_CreateLabel} 8u 24u 280u 28u "The basic install will run Jellyfin in your current user account.$\nThis is recommended for new users and those with existing Jellyfin installs older than 10.4."
  34. Pop $hCtl_setuptype_BasicInstallLabel
  35. ; === BasicInstall (type: RadioButton) ===
  36. ${NSD_CreateRadioButton} 8u 7u 280u 15u "Basic Install (Recommended)"
  37. Pop $hCtl_setuptype_BasicInstall
  38. SendMessage $hCtl_setuptype_BasicInstall ${WM_SETFONT} $hCtl_setuptype_Font1 0
  39. ${NSD_Check} $hCtl_setuptype_BasicInstall
  40. FunctionEnd