mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
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.
This commit is contained in:
parent
54d33c06c7
commit
229bd598b5
@ -185,7 +185,7 @@ Section "Jellyfin Server Service" InstallService
|
|||||||
DetailPrint "Jellyfin Server service statuscode, $0"
|
DetailPrint "Jellyfin Server service statuscode, $0"
|
||||||
${If} $0 == 0
|
${If} $0 == 0
|
||||||
InstallRetry:
|
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
|
${If} $0 <> 0
|
||||||
!insertmacro ShowError "Could not install the Jellyfin Server service." InstallRetry
|
!insertmacro ShowError "Could not install the Jellyfin Server service." InstallRetry
|
||||||
${EndIf}
|
${EndIf}
|
||||||
@ -201,7 +201,7 @@ Section "Jellyfin Server Service" InstallService
|
|||||||
DetailPrint "Jellyfin Server Service setting (Application), $0"
|
DetailPrint "Jellyfin Server Service setting (Application), $0"
|
||||||
|
|
||||||
ConfigureAppParametersRetry:
|
ConfigureAppParametersRetry:
|
||||||
ExecWait '"$INSTDIR\nssm.exe" set JellyfinServer AppParameters --datadir "$_JELLYFINDATADIR_"' $0
|
ExecWait '"$INSTDIR\nssm.exe" set JellyfinServer AppParameters --datadir \"$_JELLYFINDATADIR_\"' $0
|
||||||
${If} $0 <> 0
|
${If} $0 <> 0
|
||||||
!insertmacro ShowError "Could not configure the Jellyfin Server service." ConfigureAppParametersRetry
|
!insertmacro ShowError "Could not configure the Jellyfin Server service." ConfigureAppParametersRetry
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user