diff options
| author | Anthony Lavado <anthony@lavado.ca> | 2019-09-20 13:45:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-20 13:45:20 -0400 |
| commit | 229bd598b560c601bedbad24e027327caa048f43 (patch) | |
| tree | d08822401c0de2a658dfcc0612d9208bc3382435 | |
| parent | 54d33c06c7262ae39dbf6674a6df94f31a9155fa (diff) | |
Add escapes for path quotes in the NSIS Installer (#1777)
This adds backslashes to escape the `--datadir` path in the Windows Installer. Without this, the path would be dropped at the first space (e.g. `C:\Test Area\Jellyfin` would become `C:\Test`).
Fixes #1773.
| -rw-r--r-- | deployment/windows/jellyfin.nsi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deployment/windows/jellyfin.nsi b/deployment/windows/jellyfin.nsi index 6a647330d..e33efde91 100644 --- a/deployment/windows/jellyfin.nsi +++ b/deployment/windows/jellyfin.nsi @@ -185,7 +185,7 @@ Section "Jellyfin Server Service" InstallService DetailPrint "Jellyfin Server service statuscode, $0" ${If} $0 == 0 InstallRetry: - ExecWait '"$INSTDIR\nssm.exe" install JellyfinServer "$INSTDIR\jellyfin.exe" --datadir "$_JELLYFINDATADIR_"' $0 + ExecWait '"$INSTDIR\nssm.exe" install JellyfinServer "$INSTDIR\jellyfin.exe" --datadir \"$_JELLYFINDATADIR_\"' $0 ${If} $0 <> 0 !insertmacro ShowError "Could not install the Jellyfin Server service." InstallRetry ${EndIf} @@ -201,7 +201,7 @@ Section "Jellyfin Server Service" InstallService DetailPrint "Jellyfin Server Service setting (Application), $0" ConfigureAppParametersRetry: - ExecWait '"$INSTDIR\nssm.exe" set JellyfinServer AppParameters --datadir "$_JELLYFINDATADIR_"' $0 + ExecWait '"$INSTDIR\nssm.exe" set JellyfinServer AppParameters --datadir \"$_JELLYFINDATADIR_\"' $0 ${If} $0 <> 0 !insertmacro ShowError "Could not configure the Jellyfin Server service." ConfigureAppParametersRetry ${EndIf} |
