aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Lavado <anthony@lavado.ca>2019-10-16 03:25:39 -0400
committerAnthony Lavado <anthony@lavado.ca>2019-10-16 03:25:39 -0400
commit330395e8b63f46ce9d5ca89fa72f49ff860b5795 (patch)
treebc703683f6e7141bc352fbac35c5fd1e5272afff
parent6f504a246b27865a36fc82cee3d1af47f99a57ed (diff)
Check for the presence of AppDataLocal folder before using it
-rw-r--r--deployment/windows/jellyfin.nsi3
1 files changed, 2 insertions, 1 deletions
diff --git a/deployment/windows/jellyfin.nsi b/deployment/windows/jellyfin.nsi
index 729f501d8..c7904eb15 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"