Publish Installer/Uninstaller doesn't always remove manifest files

Alvord, Timothy 236 Reputation points
2021-03-04T17:25:55.35+00:00

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.
4,643 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,406 Reputation points
    2021-03-05T06:47:15.663+00:00

    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.**