Index: win_installer/src/installer.nsi =================================================================== diff -u -r546fee71beda4bc8b1f7a6cdbde4ba493bb50118 -ra19ba4fea56d7e78be3169eea1c79e132fffabaa --- win_installer/src/installer.nsi (.../installer.nsi) (revision 546fee71beda4bc8b1f7a6cdbde4ba493bb50118) +++ win_installer/src/installer.nsi (.../installer.nsi) (revision a19ba4fea56d7e78be3169eea1c79e132fffabaa) @@ -414,21 +414,23 @@ IfFileExists "$INSTDIR\repository" repositoryExists noRepository repositoryExists: - strcpy $6 "$6- Repository and uploaded files from previous installation: $\n$\t$INSTDIR\repository$\n$\n" + #Strcpy $6 "$6- Repository and uploaded files from previous installation: $\n$\t$INSTDIR\repository$\n$\n" + Strcpy $6 "$6- Repository and uploaded files$\n" Strcpy $RETAIN_REP "1" noRepository: IfFileExists "$INSTDIR\jboss-4.0.2\server\default\conf\log4j.xml" configs noConfigs configs: - strcpy $6 "$6- Configuration files from a previous installation: 'log4j.xml' and 'server.xml'$\n" - strcpy $6 "$6$\t$INSTDIR\jboss-4.0.2\server\default\conf$\n" - strcpy $6 "$6$\t$INSTDIR\jboss-4.0.2\server\default\deploy\jbossweb-tomcat55.sar\server.xml$\n$\n" + Strcpy $6 "$6- Configuration files 'log4j.xml' and 'server.xml'$\n" + #Strcpy $6 "$6$\t$INSTDIR\jboss-4.0.2\server\default\conf$\n" + #Strcpy $6 "$6$\t$INSTDIR\jboss-4.0.2\server\default\deploy\jbossweb-tomcat55.sar\server.xml$\n$\n" Strcpy $RETAIN_CONF "1" noConfigs: IfFileExists "$INSTDIR\lamsDump.sql" database noDatabase database: - strcpy $6 "$6- Database dump from previous installation $\n$\t$INSTDIR\lamsDump.sql$\n$\n" + Strcpy $6 "$6- LAMS database$\n" + #Strcpy $6 "$6- Database dump from previous installation $\n$\t$INSTDIR\lamsDump.sql$\n$\n" Strcpy $RETAIN_DB "1" noDatabase: @@ -1038,7 +1040,7 @@ CreateDirectory "$WINTEMP\lams" ;Now copy files that are to be retained to the temp folder - ${If} $UNINSTALL_RP == 0 + ${If} $UNINSTALL_RP == 1 #MessageBox MB_OK|MB_ICONEXCLAMATION "retaining repository" ; KEEP repository and uploaded files ; Copy repository and jboss-4.0.2\server\default\deploy\lams.ear\lams-www.war to TEMP @@ -1048,7 +1050,7 @@ CopyFiles "$INSTDIR\jboss-4.0.2\server\default\deploy\lams.ear\lams-www.war" "$WINTEMP\lams\jboss-4.0.2\server\default\deploy\lams.ear\" DetailPrint 'Saving repository and uploaded files to: $RETAIN_DIR' ${EndIf} - ${If} $UNINSTALL_CF == 0 + ${If} $UNINSTALL_CF == 1 #Messagebox MB_OK|MB_ICONEXCLAMATION "retaining conf" ;KEEP some configuration files CreateDirectory "$WINTEMP\lams\jboss-4.0.2\server\default\conf" @@ -1063,9 +1065,9 @@ ; RESTORE Retained folders to their original localtion then delete temp files - ${if} $UNINSTALL_CF == 0 - ${orif} $UNINSTALL_DB == 0 - ${orif} $UNINSTALL_RP == 0 + ${if} $UNINSTALL_CF == 1 + ${orif} $UNINSTALL_DB == 1 + ${orif} $UNINSTALL_RP == 1 CreateDirectory "$RETAIN_DIR" CopyFiles "$WINTEMP\lams" "$RETAIN_DIR\..\" RMDir /r "$RETAIN_DIR\jboss-4.0.2\server\default\deploy\jbossweb-tomcat55.sar\jbossweb-tomcat55.sar" @@ -1082,7 +1084,7 @@ ReadRegStr $1 HKLM "${REG_HEAD}" "db_name" ReadRegStr $2 HKLM "${REG_HEAD}" "db_user" ReadRegStr $3 HKLM "${REG_HEAD}" "db_pass" - ${If} $UNINSTALL_DB == 0 + ${If} $UNINSTALL_DB == 1 #Messagebox MB_OK|MB_ICONEXCLAMATION "retaining db" ; DUMP the database file into the retained install directory Strcpy $4 "$0\bin\mysqldump -r $RETAIN_DIR\lamsDump.sql $1 -u $2 -p$3" Index: win_installer/src/uninstall.ini =================================================================== diff -u -r79c1de30d6cd1ce1886f9990e2407556e6a5d561 -ra19ba4fea56d7e78be3169eea1c79e132fffabaa --- win_installer/src/uninstall.ini (.../uninstall.ini) (revision 79c1de30d6cd1ce1886f9990e2407556e6a5d561) +++ win_installer/src/uninstall.ini (.../uninstall.ini) (revision a19ba4fea56d7e78be3169eea1c79e132fffabaa) @@ -7,7 +7,7 @@ Top=42 Right=130 Bottom=52 -Text=Remove LAMS database +Text=Keep LAMS database State=1 [Field 2] @@ -16,7 +16,7 @@ Top=64 Right=178 Bottom=74 -Text=Remove LAMS repository and uplloaded files +Text=Keep LAMS repository and uploaded files State=1 [Field 3] @@ -25,7 +25,7 @@ Top=86 Right=130 Bottom=96 -Text=Remove configuration files +Text=Keep configuration files State=1 [Field 4]