?
Solved

overwrite the application file from itself

Posted on 2006-07-10
4
Medium Priority
?
345 Views
Last Modified: 2010-04-05
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
Comment
Question by:gianluca
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 46

Expert Comment

by:aikimark
ID: 17076587
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
 

Author Comment

by:gianluca
ID: 17076907
Can I create a new thread to stand-by for the application close, then update the file and close itself ???
0
 
LVL 46

Expert Comment

by:aikimark
ID: 17077055
You should create a new process.  A new thread would likely be destroyed when the application (process) terminates.
0
 
LVL 10

Accepted Solution

by:
atul_parmar earned 375 total points
ID: 17081072
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month15 days, left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question