Publish Installer/Uninstaller doesn't always remove manifest files

Alvord, Timothy 216 Reputation points

I use the Publish function in Visual Studio to create the Installer package. This works great in most cases. Occasionally, when the Program is Uninstalled, it leaves behind files in the AppData directories that prevent the program from being re-installed or a newer version from being installed. What is the cause of this and what can I do to prevent this from happening?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,189 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,381 Reputation points

    Hi AlvordTimothy,

    Are these files included in your installer package? Generally, the installer cannot delete temp files by itself. Maybe you need to create a custom action to delete them.

    Best Regards, Dylan

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our * *documentation* to enable e-mail notifications if you want to receive the related email notification for this thread.**