The Free Software Media System - Server Backend & API
Check for the presence of AppDataLocal folder before using it
Anthony Lavado330395e8b63f
diff --git a/deployment/windows/jellyfin.nsi b/deployment/windows/jellyfin.nsiindex 729f501d8b..c7904eb15f 100644--- a/deployment/windows/jellyfin.nsi+++ b/deployment/windows/jellyfin.nsi@@ -494,7 +494,8 @@ ${If} $BasicInstall == 1StrCpy $_SERVICESTART_ "No"StrCpy $_SERVICEACCOUNTTYPE_ "None"StrCpy $_MAKESHORTCUTS_ "Yes"- StrCpy $_JELLYFINDATADIR_ "$LOCALAPPDATA\Jellyfin\Server"+ IfFileExists "$LOCALAPPDATA\Jellyfin\Server\*.*" 0 ; if the folder exists, use this, otherwise, go with new default+ StrCpy $_JELLYFINDATADIR_ "$LOCALAPPDATA\Jellyfin\Server"${Else}StrCpy $_SETUPTYPE_ "Advanced"