Time being please help me to correct this code
Please tell me how can I add more policies here
For Exa:-
when a user logs logs on first time should show first policy
second time only second policy
third time third one
forth time skip all and continue with the rest of the script
please see the below code, it works fine for first time attempt and failing for second and third time
If Exist ("D:\kix\aup_files\@USERID.ini")=0
$Selection = MessageBox($msg1+$msg2+$msg3+$msg4,"ABC AUP",0)
If $Selection = 1
WriteProfileString("d:\kix\aup_files\@USERID.ini","Pol ID", "Agreement 1", "agreed pol1")
EndIf
EndIf
$pol1=ReadProfileString ("d:\kix\aup_files\@USERID.ini","Pol ID","Agreement 1")
$pol2=ReadProfileString ("d:\kix\aup_files\@USERID.ini","Pol ID","Agreement 2")
$pol3=ReadProfileString ("d:\kix\aup_files\@USERID.ini","Pol ID","Agreement 3")
If ($pol1="agreed pol1")
$Selection = MessageBox($msg5+$msg6+$msg7+$msg8,"ABC AUP",0)
If $Selection = 1
WriteProfileString("d:\kix\aup_files\@USERID.ini","Pol ID", "Agreement 2", "agreed pol2")
EndIf
EndIf
If ($pol2="agreed pol2")
$Selection = MessageBox($msg9+$msg10+$msg11+$msg12,"ABC AUP",0)
If $Selection = 1
WriteProfileString("d:\kix\aup_files\@USERID.ini","Pol ID", "Agreement 3", "agreed pol3")
EndIf
EndIf
Please help...