Index: win_installer/src/installer.nsi =================================================================== RCS file: /usr/local/cvsroot/win_installer/src/Attic/installer.nsi,v diff -u -r1.30 -r1.31 --- win_installer/src/installer.nsi 15 Dec 2006 02:32:19 -0000 1.30 +++ win_installer/src/installer.nsi 15 Dec 2006 02:35:25 -0000 1.31 @@ -750,9 +750,16 @@ ${EndIf} */ + ${if} $RETAIN_FILES == '1' + #replace the install dump with the retained dump + #MessageBox MB_OK|MB_ICONEXCLAMATION "Rebuilding datbase" + CopyFiles "$INSTDIR\backup\lamsDump.sql" "dump.sql" + DetailPrint "Using retained database: $INSTDIR\backup\lamsDump.sql" + ${endif} + # use Ant to import database DetailPrint '$INSTDIR\apache-ant-1.6.5\bin\ant.bat import-db' nsExec::ExecToStack '$INSTDIR\apache-ant-1.6.5\bin\newAnt.bat import-db' @@ -769,7 +776,7 @@ goto error ${EndIf} - ${if} $RETAIN_FILES == '1' + /*${if} $RETAIN_FILES == '1' #replace the install dump with the retained dump #CopyFiles "$INSTDIR\backup\lamsDump.sql" "$TEMP\dump.sql" DetailPrint "Using retained database: $INSTDIR\backup\lamsDump.sql" @@ -785,7 +792,7 @@ goto error ${endif} ${endif} - + */ goto done error: