question

MazharulIslam-2814 avatar image
0 Votes"
MazharulIslam-2814 asked TianyuSun-MSFT edited

Setup file failed to update version

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?



vs-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

TianyuSun-MSFT avatar image
0 Votes"
TianyuSun-MSFT answered TianyuSun-MSFT edited

Hello @MazharulIslam-2814 ,

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.