Removing Add-in Generated Files on Uninstall

Removing Add-in Generated Files on Uninstall

contactGT56Z
Community Visitor Community Visitor
212 Views
1 Reply
Message 1 of 2

Removing Add-in Generated Files on Uninstall

contactGT56Z
Community Visitor
Community Visitor

Hello,

 

I have developed a Revit add-in that generates a txt file during its execution. The issue I am facing is that this file remains on the system after the add-in is uninstalled. Since the installer is built by Autodesk for the App Store, I do not have direct control over the uninstallation process.

 

I would like to know:

  • What is the recommended approach for ensuring that files generated during the add-in's execution are removed upon uninstallation?
  • Are there any best practices for handling this within the Revit API?
  • Should I explicitly delete the file within my add-in code when Revit closes, or is there another preferred method?

Any guidance or suggestions would be greatly appreciated!

 

Thank you in advance 😉

0 Likes
213 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

The Revit API does not provide any functionality related to this task, nor does it recommend any solution. Personally, I would recommend adhering to standard .NET and Windows OS best practice.

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes