New to AutoIT, Compiled exe doesn't behave as expected.

Recommended Posts

Hey guys, I'm new to autoit, and very happy to be here. Last night I attempted to create an automation script for malwarebytes anti-malware. The script works, but not the compiled exe. The exe crashes right after the installation of the program. If someone could point me to better debugging messages, or make some corrections to my code, that would be fantastic.

Share on other sites

If I had to guess, I'd say that the Run() right after your installation kills it.

Are you sure the .exe exists already and the path is correct?

When building software installer packages I had cases where the installer.exe already ended, but launched several msiexec.exe's which did the actual installation. Since installer.exe was gone the script assumed that the installation was finished.

I'd suggest you try a MsgBox(0, "", FileExists($mbamExe)) right after the installation.

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key?Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox(be advised many downloads are not working due to ISP screwup with my storage)