pages/StackSelect.nsi
changeset 10 014d58335b6d
parent 5 85800cb04cc5
equal deleted inserted replaced
8:af10a4dbafb4 10:014d58335b6d
    23   ; Here is where we make the final decision on which stack will be used.
    23   ; Here is where we make the final decision on which stack will be used.
    24   IfFileExists "$PLUGINSDIR\StackSelect.ini" "" OnlyOneStackInstalled
    24   IfFileExists "$PLUGINSDIR\StackSelect.ini" "" OnlyOneStackInstalled
    25   
    25   
    26     !macro ConfigCheck
    26     !macro ConfigCheck
    27       IfFileExists "$stack_instdir\apps\${PRODUCT_SHORTNAME}\htdocs\config.php" 0 +3
    27       IfFileExists "$stack_instdir\apps\${PRODUCT_SHORTNAME}\htdocs\config.php" 0 +3
    28         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
    28         MessageBox MB_YESNO|MB_ICONQUESTION|MB_DEFBUTTON2 \
       
    29             "Setup has found that $(^Name) is already installed on this stack. If you continue and you do not want to delete your existing site, \
       
    30              you must select $\"Upgrade or configure database manually$\" on the next page. Otherwise, the existing installation's configuration \
       
    31              file and database will be deleted and your existing website will be replaced with a fresh one.$\n\
       
    32              $\n\
       
    33              If you are upgrading $(^Name), you can safely click Yes below, and select $\"Upgrade or configure database manually.$\"$\n\
       
    34              $\n\
       
    35              Do you want to continue?" IDYES +2
    29           Abort
    36           Abort
    30     !macroend
    37     !macroend
    31   
    38   
    32     ; Both stacks are installed; decide based on user selection
    39     ; Both stacks are installed; decide based on user selection
    33     ReadINIStr $0 "$PLUGINSDIR\StackSelect.ini" "Field 1" "State"
    40     ReadINIStr $0 "$PLUGINSDIR\StackSelect.ini" "Field 1" "State"