P
PeterW
I am trying to create a GPS based warning system for speedcameras for the
Windows Mobile 5.0 (or higher) platform. One of the features of the
application is that it has an "erase" button that automatically closes down
the application and deletes the executable. This is because this type of
software is legally not allowed in all european countries (like switzerland)
and I want to give the user the option to remove the software before entering
such countries. It's essential that no trace of the software is left after
the erase.
I have been trying to find a technical solution for this feature but it has
proven to be much harder than I thought. The problem is that the physical
executable file is locked and can't be deleted as long as the executable is
running.
I found some quite interesting articles explaining the problem in more
detail and also explaining some possible solutions. An example of a very
usefull article on this subject can be found on:
http://www.catch22.net/tuts/selfdel
Unfortunately the solutions in the article require C++ and I am trying to
achieve a solution that will work in C#.NET. Is there anybody who
can help me a bit further with this problem ? Any help is appreciated.
Windows Mobile 5.0 (or higher) platform. One of the features of the
application is that it has an "erase" button that automatically closes down
the application and deletes the executable. This is because this type of
software is legally not allowed in all european countries (like switzerland)
and I want to give the user the option to remove the software before entering
such countries. It's essential that no trace of the software is left after
the erase.
I have been trying to find a technical solution for this feature but it has
proven to be much harder than I thought. The problem is that the physical
executable file is locked and can't be deleted as long as the executable is
running.
I found some quite interesting articles explaining the problem in more
detail and also explaining some possible solutions. An example of a very
usefull article on this subject can be found on:
http://www.catch22.net/tuts/selfdel
Unfortunately the solutions in the article require C++ and I am trying to
achieve a solution that will work in C#.NET. Is there anybody who
can help me a bit further with this problem ? Any help is appreciated.