Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 351
  • Last Modified:

overwrite the application file from itself

I would like my application to overwrite itself, I want change some setup setting incorporated in the exe application file. I am able to open it for reading with the (fmOpenRead Or fmShareDenyNone) flags, but it fails using fmOpenReadWrite.
0
gianluca
Asked:
gianluca
  • 2
1 Solution
 
aikimarkCommented:
You will need to kick off another task to do this, since the system automatically locks the exe file at the start of execution.
0
 
gianlucaAuthor Commented:
Can I create a new thread to stand-by for the application close, then update the file and close itself ???
0
 
aikimarkCommented:
You should create a new process.  A new thread would likely be destroyed when the application (process) terminates.
0
 
atul_parmarCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now