Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Modify or add resources in compiled exe
#2
While executing, the exe file is locked and cannot be modified. It cannot modify resources in self. Should be possible with a temporary copy of self, but it is unusual way, unreliable, not recommended, and quite difficult. Exe copies self to exe2, runs exe2 and exits, then exe2 modifies exe, then it runs exe and exits, then exe deletes exe2 and exits.

If possible, instead use a hidden file created on user's computer. If need an initial database, you can add it to exe. Then extract it to a hidden file if the file does not exist. Usually for this is used $temp$ folder.

Also look in stackoverflow etc.
Google for
modify program resources at run time "UpdateResource"
http://stackoverflow.com/questions/4577 ... executable
http://stackoverflow.com/questions/7201 ... -resources


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)