diff options
| author | Anthony Lavado <anthony@lavado.ca> | 2019-10-22 04:33:06 -0400 |
|---|---|---|
| committer | Anthony Lavado <anthony@lavado.ca> | 2019-10-22 04:33:06 -0400 |
| commit | 94932ea21614dc8ecb303b4fe44fbe4b120beae0 (patch) | |
| tree | 498b36d8dd64d74b720b47417a399d47331a733a | |
| parent | a278b380b6513e46f119b412a150a316b2486584 (diff) | |
Make installer shortcut check better
During an upgrade, only create shortcuts if the existing install was not a service install. Otherwise, do not create them.
| -rw-r--r-- | deployment/windows/jellyfin.nsi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/deployment/windows/jellyfin.nsi b/deployment/windows/jellyfin.nsi index 1e3d255d6..f7ed78119 100644 --- a/deployment/windows/jellyfin.nsi +++ b/deployment/windows/jellyfin.nsi @@ -402,6 +402,8 @@ Function .onInit StrCpy $_EXISTINGSERVICE_ "Yes" StrCpy $_INSTALLSERVICE_ "Yes" StrCpy $_SERVICESTART_ "Yes" + StrCpy $_MAKESHORTCUTS_ "No" + SectionSetText ${CreateWinShortcuts} "" NoService: ; existing install was present but no service was detected @@ -511,6 +513,7 @@ ${If} $BasicInstall == 1 ${Else} StrCpy $_SETUPTYPE_ "Advanced" StrCpy $_INSTALLSERVICE_ "Yes" + StrCpy $_MAKESHORTCUTS_ "No" ${If} $_FOLDEREXISTS_ == "Yes" MessageBox MB_OKCANCEL|MB_ICONINFORMATION "An existing data folder was detected.\ $\r$\nBasic Setup is highly recommended.\ @@ -520,6 +523,7 @@ ${Else} ${EndIf} GoAhead: StrCpy $_JELLYFINDATADIR_ "$%ProgramData%\Jellyfin\Server" + SectionSetText ${CreateWinShortcuts} "" ${EndIf} FunctionEnd |
