1

アプリケーションの出力をターゲット PC のフォルダーにコピーする Visual Studio インストーラー プロジェクトを作成しました。今、新しいバージョンを配布したい場合は、バージョンを増やしたインストーラーを作成します。プロパティ '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 に答える