部署项目没有更新的.exe [英] Deployment project not updating .exe

查看:89
本文介绍了部署项目没有更新的.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.exe文件作为主要输出WinForms项目。我使用的是部署项目来分发,但在安装新版本时,.exe文件不被更新,这意味着我不得不要求用户手动卸载,然后安装新版本。

I have a Winforms project with a single .exe file as the primary output. I'm using a deployment project to distribute it, but the .exe file is not being updated when the new version is installed, meaning I have to ask the users to manually uninstall and then install the new version.

下面是我在做什么:


  • 我增加对输出项目的程序集的版本(这是部署项目的主输出)

  • 我增加部署项目的版本(并在提示时更新产品代码)

  • 部署项目设置删除以前的版本

  • 永久性的.exe文件属性设置为False

  • I increment the assembly version on the output project (which is the primary output of the deployment project)
  • I increment the deployment project version (and update the product code when prompted)
  • The deployment project is set to remove previous versions
  • the 'Permanent' property on the .exe is set to False

我敢肯定,我之前已经成功地做到这一点,但我似乎无法现在就做。我究竟做错了什么?

I'm sure I've done this before successfully, but I can't seem to do it now. What am I doing wrong?

编辑:我得到了它通过改变工作的文件的版本在项目属性,如的this~~MD~~aux回答

I got it to work by changing the file version in the project properties, as in this answer

推荐答案

这很难说什么可能会导致此。你是如何安装MSI不删除以前的版本?我建议在运行安装不具有详细记录工作。

It's hard to say what may be causing this. How are you installing the MSI that does not remove the previous version? I would recommend running the install that is not working with verbose logging. I would run it from the command line like this:

msiexec /i "project.msi" /l*v "c:\install.log"

/升告诉MSIEXEC(它是安装服务)创建日志*告诉它记录的一切,和v告诉它用详细模式。

/l tells msiexec (which is the installer service) to create a log, * tells it to log everything, and v tells it to use verbose mode.

运行这一点,看看日志文件,它应该告诉你什么是失败和原因。你可以在这里发布的日志文件,也和我打赌我们能找到共同

Run that, and take a look at the log file and it should tell you what is failing and why. You can post that log file here too and I bet we can find something together.

ADDITIONL问题:日志文件使它看起来像安装程序认为有没有什么关系。当你的状态更新文件版本,你有什么更新?你怎么还包括要部署的文件?你有他们包括在安装项目主输出,或者是你直接包括组件?你有它确定的依赖关系,并自动包括他们,或者你有一个项目输出?

ADDITIONL QUESTIONS: The log file makes it look like the installer thinks there is nothing to do. When you state you update the file version, what are you updating? How do you have the files included to be deployed? Do you have them included as "primary outputs" in the setup project, or are you including the assemblies directly? Do you have it determining the dependencies and automatically including them, or did you include a project output?

更新查看该职位的描述需要改变什么来自动升级微星的。 问题511789

UPDATE See this post for a description of what needs to change to automatically upgrade MSI's. Question 511789

这篇关于部署项目没有更新的.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆