Index: win_installer/src/updater.nsi =================================================================== diff -u -r264a81e13f9851c2f44ecfdbbf6fbb35a10a02ce -r7d1b52c2e9fb77cfbd974d6cf78ff407a7b47673 --- win_installer/src/updater.nsi (.../updater.nsi) (revision 264a81e13f9851c2f44ecfdbbf6fbb35a10a02ce) +++ win_installer/src/updater.nsi (.../updater.nsi) (revision 7d1b52c2e9fb77cfbd974d6cf78ff407a7b47673) @@ -227,8 +227,10 @@ WriteRegStr HKLM "${REG_HEAD}" "language_pack" $VERSION_INT DetailPrint "LAMS Language Pack ${LANGUAGE_PACK_VERSION} install successfull" + + # changing the instdir back to the original inst dir + ReadRegStr $INSTDIR HKLM "${REG_HEAD}" "dir_inst" - Call WriteRegEntries SetOutPath $INSTDIR @@ -742,10 +744,12 @@ ${StrTok} $4 "${__TIME__}" ":" 1 1 strcpy $TIMESTAMP "$0$1$2-$3$4" - MessageBox MB_OKCANCEL|MB_ICONQUESTION "Your installation of LAMS will be backed up at $INSTDIR-$TIMESTAMP.bak" IDOK continue IDCANCEL cancel - cancel: - Abort - continue: + ${if} $IS_UPDATE == "0" + MessageBox MB_OKCANCEL|MB_ICONQUESTION "Your installation of LAMS will be backed up at $INSTDIR-$TIMESTAMP.bak" IDOK continue IDCANCEL cancel + cancel: + Abort + continue: + ${endif} FunctionEnd ################################################################################