更新点击一次包没有visual studio

时间:2014-06-03 16:45:49

标签: .net visual-studio-2010 visual-studio deployment clickonce

我点击一次应用程序,通过VS 2010部署/发布时工作正常。 但我有一个要求,当我的应用程序需要一些文件更改或部署后更新。所以我希望安装该应用程序的每个客户都获得更新的文件,我不想为此使用VS.

为了达到同样的目的,我正在使用mageUI.exe。所以例如我的文件结构是这样的:

MyAppIISFolder
   Web.xml
   MyApp.application
   Setup.exe
   Application Files(folder)
          MyAppVersion(folder)
               Some.dll.deploy
               MyApp.exe.manifest
               myApp.application
               fileToChange.txt.deploy

按照以下步骤实现相同目标:

  1. 我用名为“”fileToChange.txt“的更新文件替换了文件”fileToChange.txt.deploy“。
  2. 之后我打开mageUI.exe
  3. 打开文件“MyAppIISFolder \ Application Files \ MyAppVersion \ MyApp.exe.manifest”

    a.  Went to “Files” tab and clicked on populate. 
    b.  Got Following error message MyApp.application.deploy found with deploy extension. Overwrite? 
    c.  I clicked “Yes”
    d.  The Went to “Name” tab and increased the version number
    e.  Saved the file and selected new sign certificate
    
  4. 没有来自mageUI.exe我打开了文件“MyAppIISFolder \ Application Files \ MyAppVersion \ MyApp.application”     一个。去“应用参考”     湾选择更新的清单并使用新的签名证书保存
  5. 打开文件“MyAppIISFolder \ MyApp.application”

    a.  Went to “Application Reference” tab
    b.  Selected Manifest and saved the file
    c.  Gone to “Name” folder and updated the version number
    
  6. 现在,当其中一个已安装的客户端尝试更新时,我收到以下错误:

    ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of C:\Users\me\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MyApp\MyApp.appref-ms| resulted in exception. Following failure messages were detected:
        + Exception reading manifest from 
      http://me/ MyAppIISFolder/Application%20Files/ MyAppVersion /MyApp.exe.manifest: the manifest may not be valid or the file could not be opened.
        + Parsing and DOM creation of the manifest resulted in error. Following parsing errors were noticed: 
            -HRESULT:   0x80070c81
             Start line:    0
             Start column:  0
             Host file:     
        + Exception from HRESULT: 0x80070C81
    

    我想,我错过了导致此错误的一两步。关于mageUI.exe的博客非常少,所以无法找到与之相关的东西......

0 个答案:

没有答案