Solved

overwrite the application file from itself

Posted on 2006-07-10
4
340 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
  • 2
4 Comments
 
LVL 45

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 45

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 125 total points
ID: 17081072
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

809 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