Jump to content

Recommended Posts

Havinf is issue where i have an IF under an IF and not running the second if

Func software()
    $INILOC = InputBox ( "INI Location", "Please input the Locatation and Name of the INI?")
    DirCreate ( "C:\SELFINI")
    FileCopy (  $INILOC, "C:\SELFINI")
    $Acct32 = IniRead ( "C:\SELFINI\VIPSelf.ini", "MENU", "ACCT32", "Default Value")
    $Acct64 = IniRead ( "C:\SELFINI\VIPSelf.ini", "MENU", "ACCT64", "Default Value")
    $Cage32 = IniRead ( "C:\SELFINI\VIPSelf.ini", "MENU", "CAGE32", "Default Value")
    $Cage64 = IniRead ( "C:\SELFINI\VIPSelf.ini", "MENU", "CAGE64", "Default Value")
If GUICtrlRead($ACCOUNTING)=$GUI_CHECKED Then
    If FileExists ("c:\Program Files (x86)") then
        RunWait ( $Acct64)
    Else
        RunWait ( $Acct32)
    EndIf
EndIf

If GUICtrlRead($CAGE)=$GUI_CHECKED Then
    If FileExists ("c:\Program Files (x86)") then
        RunWait ( $Cage64)
    Else
        RunWait ( $Cage32)
    EndIf
EndIf
DirRemove ( "C:\SELFINI")

EndFunc

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...