good point, you'd have to be clever about it since you can't overwrite a file in use, but it would be nice and convenient and so worth the trouble i think.
i would suggest something like this: you double click the file it just runs and displays the contents; nothing special.
you can then make changes and change pass if you want and choose 2 options, Save or Save As. If you choose Save As, it just creates a new encrypted exe file with a new name. If you choose Save, it should run some tricks to replace itself:
For example it could do something like this using commandline args to trigger.:
- create a temp file with some new temporary name with new contents
- exit the current program while launching new temporary one with special commandline arg of current filename
- the new temporary one wil overright the existing file with its own new content.
- the temporary one would then once again call the new replaced final exe with commandline arg to delete the temporary.
yes, it's a bit of work but not too hard, and would make a very nice standalone encrypted exe self-contained editor.