Check for the presence of AppDataLocal folder before using it

This commit is contained in:
Anthony Lavado 2019-10-16 03:25:39 -04:00
parent 6f504a246b
commit 330395e8b6

View file

@ -494,6 +494,7 @@ ${If} $BasicInstall == 1
StrCpy $_SERVICESTART_ "No"
StrCpy $_SERVICEACCOUNTTYPE_ "None"
StrCpy $_MAKESHORTCUTS_ "Yes"
IfFileExists "$LOCALAPPDATA\Jellyfin\Server\*.*" 0 ; if the folder exists, use this, otherwise, go with new default
StrCpy $_JELLYFINDATADIR_ "$LOCALAPPDATA\Jellyfin\Server"
${Else}