1

我创建了一个 Visual Studio 安装程序项目,用于将应用程序的输出复制到目标 PC 上的文件夹中。现在,当我想分发更新的版本时,我会创建一个增加版本的安装程序。属性“RemovePreviousVersions”和“DetectNewerInstalledVersion”设置为 True。

发生的情况是:目标文件夹中的所有文件都被安装程序覆盖,除了没有被替换的 .EXE 文件。

我是不是忘记了某个地方的设置?

谢谢,

4

1 回答 1

7

After a lot of trying and setting properties on and off, it appears that if you want an assembly or executable to be overwriten by the installer, you have to increase the version of that project each time you build an installer (and not only the version of the installer project!!!). If you don't do this, the original file is kept.

Select the executable/assembly project > Properties > application > Assembly Information. Here you can modify the version.

于 2013-08-26T14:52:55.093 回答