pages/StackSelect.nsi
changeset 2 0c0d5dadfca3
parent 0 67e1cc6cd929
child 3 0cce88c7cf7c
equal deleted inserted replaced
1:ac5bcb4e5284 2:0c0d5dadfca3
    30     ReadINIStr $0 "$PLUGINSDIR\StackSelect.ini" "Field 1" "State"
    30     ReadINIStr $0 "$PLUGINSDIR\StackSelect.ini" "Field 1" "State"
    31     StrCmp $0 1 "" UserSelectedWAPP
    31     StrCmp $0 1 "" UserSelectedWAPP
    32       ; User selected WAMP
    32       ; User selected WAMP
    33       Call BNSetVarsForWAMP
    33       Call BNSetVarsForWAMP
    34       !insertmacro ConfigCheck
    34       !insertmacro ConfigCheck
       
    35       LockWindow on
    35       Return
    36       Return
    36       
    37       
    37     UserSelectedWAPP:
    38     UserSelectedWAPP:
    38       ; User selected WAPP
    39       ; User selected WAPP
    39       Call BNSetVarsForWAPP
    40       Call BNSetVarsForWAPP
    40       !insertmacro ConfigCheck
    41       !insertmacro ConfigCheck
       
    42       LockWindow on
    41       Return
    43       Return
    42   
    44   
    43   OnlyOneStackInstalled:
    45   OnlyOneStackInstalled:
    44   StrCmp $wampstack_installed 0 +3
    46   StrCmp $wampstack_installed 0 +3
    45     ; MySQL
    47     ; MySQL
    46     Call BNSetVarsForWAMP
    48     Call BNSetVarsForWAMP
    47     !insertmacro ConfigCheck
    49     !insertmacro ConfigCheck
       
    50     LockWindow on
    48     Return
    51     Return
    49     
    52     
    50     ; PostgreSQL
    53     ; PostgreSQL
    51     Call BNSetVarsForWAPP
    54     Call BNSetVarsForWAPP
    52     !insertmacro ConfigCheck
    55     !insertmacro ConfigCheck
       
    56     LockWindow on
    53     Return
    57     Return
    54 FunctionEnd
    58 FunctionEnd
    55 
    59 
    56 Function BNSetVarsForWAMP
    60 Function BNSetVarsForWAMP
    57   StrCpy $stack_type "WAMP"
    61   StrCpy $stack_type "WAMP"