Jump to content

Renaming an exe shouldnt cause issues...right?


s2mikey
 Share

Recommended Posts

Hi all. I didnt see much about this particular issue so here goes:

I compile and build an au3 script I have into an exe file. All good. But, if we rename the exe file the script starts but eventually dies and the exe disappears from Task Manager meaning it "killed" itself or whatever. If we run it under its original name all is well. I didnt think renaming an exe was going to cause trouble but it is.

Is there something Im missing here? Should you not rename exe files that Auto IT generates? Any settings I need to know about when building exe files to avoid this? And No, I do NOT reference the name of the file anywhere in the script itself.

Thanks in advance...

Link to comment
Share on other sites

[compiled autoit script quietly dies, when file name is changed]

Is there something Im missing here? Should you not rename exe files that Auto IT generates?

Any settings I need to know about when building exe files to avoid this?

And No, I do NOT reference the name of the file anywhere in the script itself.

The EXE name itself is nothing important at all.

You stated, that the @scriptname is *NOT* referenced in the script at all. That's double checked?

May be some registry keys you read from / write to are related to the @Scriptname / @ScriptFullPath?

I'd expect something like this, or a coded "truename checker" like

If @scriptname <> "MyTrueName.exe" then exit

Post your code, pls.

Regards, Rudi.

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...