1 Dim ans 2 ans = MsgBox( "Really uninstall TeX Live?" & vbcrlf & vbcrlf & _ 3 "Please make sure that no TeX Live programs are still running!", _ 4 36, "TeX Live uninstaller" ) 5 If ans <> vbYes Then 6 wscript.quit( 1 ) 7 Else 8 wscript.quit( 0 ) 9 End If 10 11 ' invocation from cmd.exe: 12 ' start /wait uninstq.vbs 13 ' test errorlevel 14 15 ' invocation from perl: 16 ' my $ans = system( "wscript", "uninstq.vbs" ); 17 ' 0 means yes