Add additional dialogs (draft)

This commit is contained in:
Anthony Lavado 2022-03-27 17:05:22 -04:00
parent 4d2c4b643c
commit b908dfc037
7 changed files with 116 additions and 29 deletions

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file was created by NSISDialogDesigner 1.5.0.0
https://coolsoft.altervista.org/nsisdialogdesigner
Do not edit manually!
-->
<Dialog Name="data_directory" Title="Dialog title..." Subtitle="Dialog subtitle..." />

View File

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file was created by NSISDialogDesigner 1.4.4.0
http://coolsoft.altervista.org/nsisdialogdesigner
This file was created by NSISDialogDesigner 1.5.0.0
https://coolsoft.altervista.org/nsisdialogdesigner
Do not edit manually!
-->
<Dialog Name="service_config" Title="CoOnfigure the service" Subtitle="This controls what type of access the server gets to this system." GenerateShowFunction="False">
<CheckBox Name="StartServiceAfterInstall" Location="12, 192" Size="426, 24" Text="Start Service after Install" Checked="True" TabIndex="0" />
<Label Name="LocalSystemAccountLabel" Location="12, 115" Size="426, 46" Text="The Local System account has full access to every resource and file on the system. This can have very real security implications, do not use unless absolutely neseccary." TabIndex="1" />
<Label Name="LocalSystemAccountLabel" Location="12, 115" Size="426, 46" Text="The Local System account has full access to every resource and file on the system. This can have very real security implications. Do not use unless absolutely neseccary." TabIndex="1" />
<Label Name="NetworkServiceAccountLabel" Location="12, 39" Size="426, 46" Text="The NetworkService account is a predefined local account used by the service control manager. It is the recommended way to install the Jellyfin Server service." TabIndex="2" />
<RadioButton Name="UseLocalSystemAccount" Location="12, 88" Size="426, 24" Text="Use Local System account" TabIndex="3" />
<RadioButton Name="UseNetworkServiceAccount" Location="12, 12" Size="426, 24" Text="Use Network Service account (Recommended)" Font="Microsoft Sans Serif, 8.25pt, style=Bold" Checked="True" TabIndex="4" />

View File

@ -1,6 +1,6 @@
; =========================================================
; This file was generated by NSISDialogDesigner 1.4.4.0
; http://coolsoft.altervista.org/nsisdialogdesigner
; This file was generated by NSISDialogDesigner 1.5.0.0
; https://coolsoft.altervista.org/nsisdialogdesigner
;
; Do not edit it manually, use NSISDialogDesigner instead!
; =========================================================
@ -17,40 +17,40 @@ Var hCtl_service_config_Font1
; dialog create function
Function fnc_service_config_Create
; custom font definitions
CreateFont $hCtl_service_config_Font1 "Microsoft Sans Serif" "8.25" "700"
; === service_config (type: Dialog) ===
nsDialogs::Create 1018
Pop $hCtl_service_config
${If} $hCtl_service_config == error
Abort
${EndIf}
!insertmacro MUI_HEADER_TEXT "Configure the service" "This controls what type of access the server gets to this system."
!insertmacro MUI_HEADER_TEXT "CoOnfigure the service" "This controls what type of access the server gets to this system."
; === StartServiceAfterInstall (type: Checkbox) ===
${NSD_CreateCheckbox} 8u 118u 280u 15u "Start Service after Install"
Pop $hCtl_service_config_StartServiceAfterInstall
${NSD_Check} $hCtl_service_config_StartServiceAfterInstall
; === LocalSystemAccountLabel (type: Label) ===
${NSD_CreateLabel} 8u 71u 280u 28u "The Local System account has full access to every resource and file on the system. This can have very real security implications, do not use unless absolutely neseccary."
${NSD_CreateLabel} 8u 71u 280u 28u "The Local System account has full access to every resource and file on the system. This can have very real security implications. Do not use unless absolutely neseccary."
Pop $hCtl_service_config_LocalSystemAccountLabel
; === NetworkServiceAccountLabel (type: Label) ===
${NSD_CreateLabel} 8u 24u 280u 28u "The NetworkService account is a predefined local account used by the service control manager. It is the recommended way to install the Jellyfin Server service."
Pop $hCtl_service_config_NetworkServiceAccountLabel
; === UseLocalSystemAccount (type: RadioButton) ===
${NSD_CreateRadioButton} 8u 54u 280u 15u "Use Local System account"
Pop $hCtl_service_config_UseLocalSystemAccount
${NSD_AddStyle} $hCtl_service_config_UseLocalSystemAccount ${WS_GROUP}
; === UseNetworkServiceAccount (type: RadioButton) ===
${NSD_CreateRadioButton} 8u 7u 280u 15u "Use Network Service account (Recommended)"
Pop $hCtl_service_config_UseNetworkServiceAccount
SendMessage $hCtl_service_config_UseNetworkServiceAccount ${WM_SETFONT} $hCtl_service_config_Font1 0
${NSD_Check} $hCtl_service_config_UseNetworkServiceAccount
FunctionEnd

View File

@ -1,12 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file was created by NSISDialogDesigner 1.4.4.0
http://coolsoft.altervista.org/nsisdialogdesigner
This file was created by NSISDialogDesigner 1.5.0.0
https://coolsoft.altervista.org/nsisdialogdesigner
Do not edit manually!
-->
<Dialog Name="setuptype" Title="Setup Type" Subtitle="Control how Jellyfin is installed.">
<Label Name="InstallasaServiceLabel" Location="12, 115" Size="426, 46" Text="Install Jellyfin as a service. This method is not recommended and is for Advanced Users. Additional setup is required to access network shares. Hardware Accelaration may not work." TabIndex="0" />
<RadioButton Name="InstallasaService" Location="12, 88" Size="426, 24" Text="Install as a Service (Advanced Users Only)" TabIndex="1" />
<Label Name="BasicInstallLabel" Location="12, 39" Size="426, 46" Text="The basic install will run Jellyfin in your current user account.$\nThis is recommended for most users." TabIndex="2" />
<RadioButton Name="BasicInstall" Location="12, 12" Size="426, 24" Text="Basic Install (Recommended)" Font="Microsoft Sans Serif, 8.25pt, style=Bold" Checked="True" TabIndex="3" />
</Dialog>
<Label Name="Label1" Location="12, 148" Size="351, 23" Text="This method is not recommended and is for Advanced Users. " Font="Microsoft Sans Serif, 9pt, style=Bold" ForeColor="Red" TabIndex="0" />
<Label Name="InstallasaServiceLabel" Location="12, 115" Size="426, 46" Text="Install Jellyfin as a service. Additional setup is required to access network shares. Hardware Accelaration may not work." Font="Microsoft Sans Serif, 8.25pt" TabIndex="1" />
<RadioButton Name="InstallasaService" Location="12, 88" Size="426, 24" Text="Install as a Service (Advanced Users Only)" TabIndex="2" />
<Label Name="BasicInstallLabel" Location="12, 39" Size="426, 46" Text="The basic install will run Jellyfin in your current user account.$\nThis is recommended for most users." TabIndex="3" />
<RadioButton Name="BasicInstall" Location="12, 12" Size="426, 24" Text="Basic Install (Recommended)" Font="Microsoft Sans Serif, 8.25pt, style=Bold" Checked="True" TabIndex="4" />
</Dialog>

View File

@ -1,24 +1,27 @@
; =========================================================
; This file was generated by NSISDialogDesigner 1.4.4.0
; http://coolsoft.altervista.org/nsisdialogdesigner
; This file was generated by NSISDialogDesigner 1.5.0.0
; https://coolsoft.altervista.org/nsisdialogdesigner
;
; Do not edit it manually, use NSISDialogDesigner instead!
; =========================================================
; handle variables
Var hCtl_setuptype
Var hCtl_setuptype_Label1
Var hCtl_setuptype_InstallasaServiceLabel
Var hCtl_setuptype_InstallasaService
Var hCtl_setuptype_BasicInstallLabel
Var hCtl_setuptype_BasicInstall
Var hCtl_setuptype_Font1
Var hCtl_setuptype_Font2
; dialog create function
Function fnc_setuptype_Create
; custom font definitions
CreateFont $hCtl_setuptype_Font1 "Microsoft Sans Serif" "8.25" "700"
CreateFont $hCtl_setuptype_Font1 "Microsoft Sans Serif" "9" "700"
CreateFont $hCtl_setuptype_Font2 "Microsoft Sans Serif" "8.25" "700"
; === setuptype (type: Dialog) ===
nsDialogs::Create 1018
@ -28,23 +31,35 @@ Function fnc_setuptype_Create
${EndIf}
!insertmacro MUI_HEADER_TEXT "Setup Type" "Control how Jellyfin is installed."
; === Label1 (type: Label) ===
${NSD_CreateLabel} 8u 91u 231u 14u "This method is not recommended and is for Advanced Users. "
Pop $hCtl_setuptype_Label1
SendMessage $hCtl_setuptype_Label1 ${WM_SETFONT} $hCtl_setuptype_Font1 0
SetCtlColors $hCtl_setuptype_Label1 0xFF0000 0xF0F0F0
; === InstallasaServiceLabel (type: Label) ===
${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."
${NSD_CreateLabel} 8u 71u 280u 28u "Install Jellyfin as a service. Additional setup is required to access network shares. Hardware Accelaration may not work."
Pop $hCtl_setuptype_InstallasaServiceLabel
; === InstallasaService (type: RadioButton) ===
${NSD_CreateRadioButton} 8u 54u 280u 15u "Install as a Service (Advanced Users)"
${NSD_CreateRadioButton} 8u 54u 280u 15u "Install as a Service (Advanced Users Only)"
Pop $hCtl_setuptype_InstallasaService
${NSD_AddStyle} $hCtl_setuptype_InstallasaService ${WS_GROUP}
; === BasicInstallLabel (type: Label) ===
${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."
${NSD_CreateLabel} 8u 24u 280u 28u "The basic install will run Jellyfin in your current user account.$\nThis is recommended for most users."
Pop $hCtl_setuptype_BasicInstallLabel
; === BasicInstall (type: RadioButton) ===
${NSD_CreateRadioButton} 8u 7u 280u 15u "Basic Install (Recommended)"
Pop $hCtl_setuptype_BasicInstall
SendMessage $hCtl_setuptype_BasicInstall ${WM_SETFONT} $hCtl_setuptype_Font1 0
SendMessage $hCtl_setuptype_BasicInstall ${WM_SETFONT} $hCtl_setuptype_Font2 0
${NSD_Check} $hCtl_setuptype_BasicInstall
FunctionEnd
; dialog show function
Function fnc_setuptype_Show
Call fnc_setuptype_Create
nsDialogs::Show
FunctionEnd

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file was created by NSISDialogDesigner 1.5.0.0
https://coolsoft.altervista.org/nsisdialogdesigner
Do not edit manually!
-->
<Dialog Name="warning" Title="Dialog title..." Subtitle="Dialog subtitle...">
<Label Name="Label3" Location="15, 98" Size="380, 37" Text="Do not choose any folder that contains other data or media. Upon uninstall, they will be erased." Font="Microsoft Sans Serif, 10pt, style=Bold" ForeColor="Red" TabIndex="0" />
<Label Name="Label2" Location="15, 54" Size="423, 35" Text="When choosing an install directory and data directory, it is recommended to leave them at their default paths." TabIndex="1" />
<Label Name="Label1" Location="12, 9" Text="Folder Warning" Font="Microsoft Sans Serif, 8.25pt, style=Bold" TabIndex="2" />
</Dialog>

View File

@ -0,0 +1,53 @@
; =========================================================
; This file was generated by NSISDialogDesigner 1.5.0.0
; https://coolsoft.altervista.org/nsisdialogdesigner
;
; Do not edit it manually, use NSISDialogDesigner instead!
; =========================================================
; handle variables
Var hCtl_warning
Var hCtl_warning_Label3
Var hCtl_warning_Label2
Var hCtl_warning_Label1
Var hCtl_warning_Font1
Var hCtl_warning_Font2
; dialog create function
Function fnc_warning_Create
; custom font definitions
CreateFont $hCtl_warning_Font1 "Microsoft Sans Serif" "10" "700"
CreateFont $hCtl_warning_Font2 "Microsoft Sans Serif" "8.25" "700"
; === warning (type: Dialog) ===
nsDialogs::Create 1018
Pop $hCtl_warning
${If} $hCtl_warning == error
Abort
${EndIf}
!insertmacro MUI_HEADER_TEXT "Dialog title..." "Dialog subtitle..."
; === Label3 (type: Label) ===
${NSD_CreateLabel} 10u 60u 250u 23u "Do not choose any folder that contains other data or media. Upon uninstall, they will be erased."
Pop $hCtl_warning_Label3
SendMessage $hCtl_warning_Label3 ${WM_SETFONT} $hCtl_warning_Font1 0
SetCtlColors $hCtl_warning_Label3 0xFF0000 0xF0F0F0
; === Label2 (type: Label) ===
${NSD_CreateLabel} 10u 33u 278u 22u "When choosing an install directory and data directory, it is recommended to leave them at their default paths."
Pop $hCtl_warning_Label2
; === Label1 (type: Label) ===
${NSD_CreateLabel} 8u 6u 66u 14u "Folder Warning"
Pop $hCtl_warning_Label1
SendMessage $hCtl_warning_Label1 ${WM_SETFONT} $hCtl_warning_Font2 0
FunctionEnd
; dialog show function
Function fnc_warning_Show
Call fnc_warning_Create
nsDialogs::Show
FunctionEnd