equal
deleted
inserted
replaced
20 ; Here is where we make the final decision on which stack will be used. |
20 ; Here is where we make the final decision on which stack will be used. |
21 IfFileExists "$PLUGINSDIR\StackSelect.ini" "" OnlyOneStackInstalled |
21 IfFileExists "$PLUGINSDIR\StackSelect.ini" "" OnlyOneStackInstalled |
22 |
22 |
23 !macro ConfigCheck |
23 !macro ConfigCheck |
24 IfFileExists "$stack_instdir\apps\${PRODUCT_SHORTNAME}\htdocs\config.php" 0 +3 |
24 IfFileExists "$stack_instdir\apps\${PRODUCT_SHORTNAME}\htdocs\config.php" 0 +3 |
25 MessageBox MB_YESNO|MB_ICONQUESTION|MB_DEFBUTTON2 "Setup has found that $(^Name) is already installed on this stack. If you continue, the existing installation's configuration file will be deleted and your existing website will be replaced with a fresh one.$\n$\nDo you want to delete your existing $(^Name) website?" IDYES +2 |
25 MessageBox MB_YESNO|MB_ICONQUESTION|MB_DEFBUTTON2 "Setup has found that $(^Name) is already installed on this stack. If you continue and you do not want to delete your existing site, you must provide the database information of the current installation on the next page. Otherwise, the existing installation's configuration file will be deleted and your existing website will be replaced with a fresh one.$\n$\nIf you are upgrading $(^Name), you can safely click Yes below, and enter the database information found in $stack_instdir\apps\${PRODUCT_SHORTNAME}\config.php on the next page.$\n$\nDo you want to continue?" IDYES +2 |
26 Abort |
26 Abort |
27 !macroend |
27 !macroend |
28 |
28 |
29 ; Both stacks are installed; decide based on user selection |
29 ; Both stacks are installed; decide based on user selection |
30 ReadINIStr $0 "$PLUGINSDIR\StackSelect.ini" "Field 1" "State" |
30 ReadINIStr $0 "$PLUGINSDIR\StackSelect.ini" "Field 1" "State" |