Remo1075 Posted February 24, 2010 Share Posted February 24, 2010 Hello all, I'm sure this is a very simple fix but I just can't see it. After the gui/_func() closes it runs the next bit of code below which runs fine but only once. If I hit "No" answer 7 it should run the func() again then run in to the below code yet again. But the 2nd time around it seems to skip the if $answer = 7 bit and go to the setup.exe. It should continue to run through the If statement and call the Func() again as long as I keep selecting NO. ;If CRC32 = 695689BD then pop up a box to ask if you are sure, if yes then continue on, if no then call _func() Global $sFile = @WindowsDir & "\Config.xml" Global $sData Global $answer $sData = _CRC32ForFile($sFile) If $sData = "695689BD" Then $answer = MsgBox(68, "File hash check is " & $sData , "Only English will be installed, are you sure?" & @CRLF & _ "Nur Englisch wird installiert, sind Sie sicher?") EndIf If $answer = 7 Then ;No _Func() EndIf If $answer = 2 Then ;Cancel Exit EndIf ;Execute the script with all param ;run some setup.exe Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now