Stuart
Tue Jun 06 17:35:43 CDT 2006
Actually, it is possible and various techniques are available to implement a "self deleting executable", see
http://tinyurl.com/eb9o4.
Dave Brown wrote:
>> I didn't say it was a good idea :)
>>
>> I was providing some ideas, given the original question was regarding the
>> possibility of embedding a new resource in their *existing* executable.
>> Yes, there are side effects, which you have duly pointed out - the
>> assembly cannot be strongly named, and it can not be verified, therefore
>> posing a severe security risk.
>
> Thanks for the suggestion. In addtion to the above issues however, it's an
> unwieldy solution :) and one I doubt will even work. It's unlikely I can
> copy a running executable without encountering some type of sharing
> violation nor could I copy it back to itself for the similar reasons (so who
> will do this copying). Even if it was doable, it would be a dangerous
> venture trying to copy it back to itself while still running (proper
> synchronization would be required but this is outside my control).
>
>