PantZ4 Posted December 18, 2006 Posted December 18, 2006 I try to kill the setup program before the install is complet but it doesn't seems to work... If _Singleton("Install.exe",1) = 0 Then Exit WinKill("Setup.exe", "") MsgBox(64,"The install will now begin") ; blablabal I try also Opt("WinTextMatchMode", 2), but no luck... Thank you
Developers Jos Posted December 18, 2006 Developers Posted December 18, 2006 I try to kill the setup program before the install is complet but it doesn't seems to work... If _Singleton("Install.exe",1) = 0 Then Exit WinKill("Setup.exe", "") MsgBox(64,"The install will now begin") ; blablabal I try also Opt("WinTextMatchMode", 2), but no luck... Thank you ProcessClose() ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
quick_sliver007 Posted December 19, 2006 Posted December 19, 2006 Nope... It just wont die...There could be a 2nd or even a 3rd program that is reopening the first program. For example, if program "b" detects that program "a" has been closed, it reopening it and if program "a" detects that program "b" is close, it reopens it. So you have to close both programs at the same time. I have seen this problem before with ad ware and spy ware. .
ihudson Posted February 1, 2007 Posted February 1, 2007 I've seen this as well. When winkill tries to kill a window the window won't close so winkill just keeps on trying to kill it and gets stuck in a loop. I've noticed that the install program will have the window's "close" button disabled then it will prompt the user to ensure that closing the window was what they intended to do. The second window will have the same window title as the first. So it looks like you would have to kill the program at a different time or have the script send the "Y" character to click the "Yes" button, meaning yes this is what I intended to do. That would automatilcally close the first window. I think it is best to kill the window earlier or later in the process if you can.
i542 Posted February 1, 2007 Posted February 1, 2007 If _Singleton("Install.exe",1) = 0 Then Exit ;enter win title, I entered "Microsoft Internet Explorer"... harharhar! WinKill("Microsoft Internet Explorer", "") If @error then ProcessClose("iexplore.exe") If @error then MsgBox(16,"Error","Falied to close IE. Destroying of Internet Explorer and putting Firefox everywhere is terminated. You will must continue to use IE. :)") EndIf MsgBox(64,"The install will now begin") ; blablala Not tested i542 I can do signature me.
Shevilie Posted February 1, 2007 Posted February 1, 2007 If you use Ctrl + Alt + Del choose Process find it there and kill it ... does that work ??? Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
as5bcr Posted February 1, 2007 Posted February 1, 2007 Open cmd and type:taskkill /IM /F anything.exeFor more information, type taskkill /?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now