比如说我像让一个绿色版的软件安装必要插件的时候检查多个文件是否存在,不存在执行安装,我这样写对不对
if Not FileExists("C:\Program Files\Windows Live")=1 then
run("msiexec /i H:\AU3\MSN\WLCP.msi /qn /norestart")
Sleep(6000)
EndIf
if Not FileExists("C:\Program Files\MSN\MSN Safety Module")=1 then
run("msiexec /i H:\AU3\MSN\MSNSAFE.msi /qn /norestart")
Sleep(6000)
EndIf
if Not FileExists("C:\WINDOWS\yee.nqi")=1 then
run("msiexec /i H:\AU3\MSN\C08\vc_red.msi /qn /norestart")
Sleep(6000)
If Not FileExists("C:\Program Files\Windows Live") Then
RunWait("msiexec /i H:\AU3\MSN\WLCP.msi /qn /norestart")
ElseIf Not FileExists("C:\Program Files\MSN\MSN Safety Module") Then
RunWait("msiexec /i H:\AU3\MSN\MSNSAFE.msi /qn /norestart")
ElseIf Not FileExists("C:\WINDOWS\yee.nqi") Then
RunWait("msiexec /i H:\AU3\MSN\C08\vc_red.msi /qn /norestart")
EndIf
if Not FileExists("C:\Program Files\Windows Live")=1 then
run("msiexec /i H:\AU3\MSN\WLCP.msi /qn /norestart")
Sleep(6000)
EndIf
if Not FileExists("C:\Program Files\MSN\MSN Safety Module")=1 then
run("msiexec /i H:\AU3\MSN\MSNSAFE.msi /qn /norestart")
Sleep(6000)
EndIf
if Not FileExists("C:\WINDOWS\yee.nqi")=1 then
run("msiexec /i H:\AU3\MSN\C08\vc_red.msi /qn /norestart")
Sleep(6000)
Endif
书写的格式不是那么玩的