1

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

4

1 回答 1

0

您必须将版本(默认为 1.0.0)从构建更改为构建。前三个字段之一必须更改。允许的数字是 0-255.0-255.0-65535。

此外,正在更新的安装程序和执行更新的安装程序必须安装在同一范围内。如果一个是 Per-User 而一个是 Per-Machine 它将不起作用。

于 2011-01-12T01:25:52.263 回答