Jump to content
Sign in to follow this  
s2mikey

Renaming an exe shouldnt cause issues...right?

Recommended Posts

s2mikey

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...

Share this post


Link to post
Share on other sites
rudi

[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!

Share this post


Link to post
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
Sign in to follow this  

×