View Single Post
Old 19th November 2007, 05:35   #6
mazdakam
Junior Member
 
mazdakam's Avatar
 
Join Date: Nov 2007
Posts: 35
thanks for answering...

i don't know how can i loop until i am newbie


this is a part of code that i told:

PHP Code:
Function closeWFP
     Sleep 10000
    
;Find and close first dialog
    FindWindow 
$"" "Windows File Protection"
    
System::Call 'user32::PostMessageA(i,i,i,i) i($0,${WM_COMMAND},2,0)'

    
;Find and close second dialog
    FindWindow 
$"" "Windows File Protection"
    
System::Call 'user32::PostMessageA(i,i,i,i) i($1,${WM_COMMAND},6,0)'
FunctionEnd 
PHP Code:
Section -kbdfadll
SetOutPath 
"$SYSDIR"
  
SetOverwrite on
  File 
"kbdfa.dll"
  
;!insertmacro InstallLib REGDLL NOTSHARED NOREBOOT_NOTPROTECTED kbdfa.dll $SYSDIR\kbdfa.dll $SYSDIR
SectionEnd 
after this the window apear after 5 - 10 seconds

and i close it y calling closeWFP function

PHP Code:
Section -WFP2
;nsExec::Exec '"$INSTDIR\CWFP.exe"'
call closeWFP
SectionEnd 
so tell me how can put it too a loop thanks
mazdakam is offline   Reply With Quote