Skip to content

Commit

Permalink
Remove JRE Files before reinstalling them on update
Browse files Browse the repository at this point in the history
  • Loading branch information
unlogisch04 committed Jan 6, 2024
1 parent d8c937a commit f6ad409
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions windows/web/slimevr_web_installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,12 @@ Section "Java JRE" SEC_JRE
${EndIf}
DetailPrint "Downloaded!"

# Make sure to delete all files on a update from jre, so if there is a new version no old files are left.
${If} $SELECTED_INSTALLER_ACTION == "update"
DetailPrint "Removing Java JRE 17..."
RMdir /r "$INSTDIR\jre"
${EndIf}

DetailPrint "Unzipping Java JRE 17 to installation folder...."
nsisunz::Unzip "$TEMP\$DownloadedJreFile.zip" "$TEMP\$DownloadedJreFile\"
Pop $0
Expand Down

0 comments on commit f6ad409

Please sign in to comment.