在Visual Studio 2010/2012中发布应用程序

在Visual Studio 2010/2012中发布应用程序

问题描述:

我有一个在Visual Studio 2010中构建的项目,该项目的副本是使用Visual Studio 2012构建的。每次单击以发布该应用程序,然后通过电子邮件将结果的压缩副本(在2010或2012中)运行出现了一个问题,该应用程序根本无法安装,但出现错误,应联系管理员或安装该应用程序,然后又没有安装同一应用程序的新副本(此后在同一台计算机上)。请问该如何解决?我已经在许多线程上尝试了许多建议的clickonce修复程序,但是我想知道是否有一种确定的方法可以一劳永逸地处理此问题。

I have a project built in Visual Studio 2010, with a copy of it built using Visual Studio 2012. Each time I click to publish the application and then email a zipped copy of the result(in either 2010 or 2012) I run into a problem where the application does not install at all with an error that the admin should be contacted or it installs and then a new copy of the same app does not(later on on the same machine). How do I fix this problem please? I have tried many of the suggested clickonce fixes on many threads already but I am wondering if there is a sure way to deal with this once and for all.

为了帮助您,我们需要您设置的更多详细信息:

In order to help you we'll need more details on your setup:


  1. WinForms / Web / Console / Service应用程序

  2. 您将其发布在本地计算机还是远程计算机上?

  3. 错误消息的详细信息

  4. 正在运行的命令的详细信息(VS->工具->选项->项目和解决方案->构建并运行-> MS Build Verbosity->诊断)

  5. 您是否正在使用构建和部署软件包。

  1. WinForms/Web/Console/Service app
  2. Are you publishing it on local machine or remote machine?
  3. Details of error message
  4. Details of commands being run (VS -> Tools -> Options -> Projects & Solutions -> Build And Run -> MS Build Verbosity -> Diagnostic)
  5. Are you using build and deployment package or not.

打开msi日志记录也有帮助。
http://www.advancedinstaller.com/user-guide/msiexec.html

Turning on msi logging helps too. http://www.advancedinstaller.com/user-guide/msiexec.html

要在远程计算机上安装 new msi软件包,您必须先卸载先前的软件包,afaik vs will不为你做。

In order to install new msi package on a remote machine you will have to uninstall the previous one first, afaik vs will not do that for you.