diff --git a/cmake/templates/NSIS.template.in b/cmake/templates/NSIS.template.in index bdf2b50b3c..b0c5b1fe05 100644 --- a/cmake/templates/NSIS.template.in +++ b/cmake/templates/NSIS.template.in @@ -685,8 +685,9 @@ FunctionEnd ;Installer Sections Section "-Core installation" + ;The following delete blocks are temporary and can be removed once users who had the initial installer have updated + ;Delete any server-console files installed before it was placed in sub-folder - ;This is temporary and can be removed once users who had the initial installer have updated Delete "$INSTDIR\server-console.exe" RMDir /r "$INSTDIR\locales" RMDir /r "$INSTDIR\resources\app" @@ -705,6 +706,10 @@ Section "-Core installation" Delete "$INSTDIR\version" Delete "$INSTDIR\xinput1_3.dll" + ; Remove the Old Interface directory and vcredist_x64.exe (from installs prior to Server Console) + RMDir /r "$INSTDIR\Interface" + Delete "$INSTDIR\vcredist_x64.exe" + ;Use the entire tree produced by the INSTALL target. Keep the ;list of directories here in sync with the RMDir commands below. SetOutPath "$INSTDIR"