I have create a solution in visual studio 2008 with two project, one is for main application code and the other is a visual deployment project (.vdproj) to create the installer.
In deployment project, I add the project output of the application code project ( .exe file) to target Application Folder. But Issues found everytime I make a new version of the installer, the .exe file cannot be override if I run the new installer on a machine with previous version of installation.
I have regenerated the product code and keep the upgrade code unchanged, also set the "RemovePreviousVersions" property of the vdproj to true, and other ordinary files are overrided correctly with the new installer.
Also I changed the version from 1.0.0 to 1.0.1 or so everytime I make new installers.
Anyone has met such issue, any suggestions for me, thank you very much!
ps- Finally, I get the solution here: Deployment project not updating .exe