the problem was that when i was cerating files from the installed application the file was created with 'Hidden' and 'ReadOnly' attributes. hence it could not be deleted from the application. i was getting 'Access denied' error.
i resolved this by writing this code when file is created.
Code:
File.SetAttributes("fileName", FileAttributes.Normal);
Leave a comment: