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.