Originally Posted by arunk
I dont want to store any data in the file.
So you are creating an empty file and not writing to it? There must be some point in creating the file - something must access it at some point, otherwise it shouldn't be created at all. So instead of reading and writing to that file you should read and write to the object store instead. That's the proper way if you want your application to be cleaned up at uninstall.