From 330395e8b63f46ce9d5ca89fa72f49ff860b5795 Mon Sep 17 00:00:00 2001 From: Anthony Lavado Date: Wed, 16 Oct 2019 03:25:39 -0400 Subject: [PATCH] Check for the presence of AppDataLocal folder before using it --- deployment/windows/jellyfin.nsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deployment/windows/jellyfin.nsi b/deployment/windows/jellyfin.nsi index 729f501d8b..c7904eb15f 100644 --- a/deployment/windows/jellyfin.nsi +++ b/deployment/windows/jellyfin.nsi @@ -494,7 +494,8 @@ ${If} $BasicInstall == 1 StrCpy $_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"