Setup file failed to update version

Mazharul Islam 1 Reputation point
2021-06-15T07:26:12.543+00:00

Hello,
I create a setup project from vs 2017 installer. V1.0.0 is running perfectly. Now I made some changes and change into version(v.1.1.0). I also select True for RemovePreviousVersion. Here I attached a screenshot for my all properties

![105711-installer-problem.png][1]

Now problem is when I install the new version, it perfectly uninstall the previous version and show me control panel that it successfully install the new version. But in program file (C:\Program Files (x86)\DigDoc info\DigDoc info) the folder is empty. But if I install again the v.1.1.0, then all supported file is showing in that folder.

Is there any suggestion please. I need uninstall the previous installer and install the new version from one click. What project properties should I select?

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

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 30,451 Reputation points Microsoft Vendor
    2021-06-16T03:24:51.677+00:00

    Hello @Mazharul Islam ,

    Welcome to Microsoft Q&A forum.

    I tested twice, after setting the RemovePreviousVersion to True and modifying some codes(include changing the version), I reinstalled my test program by double-clicking the .msi file, everything worked well. The related program files updated/refreshed (the folder was not empty) and the previous version of program was uninstalled and the newer version of program was reinstalled.

    So, your issue may be related to the specific development environment or settings of your project. If possible, could you please try to test with a newly created project, and create a new folder to store the output files? If this issue is reproducible, could you share the detailed reproducible steps with me to check further?

    Besides, you can ask this issue here: Microsoft Visual Studio Installer Projects - Q&A.

    Best Regards,
    Tianyu

    • 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.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.