我已經創建了一個自定義安裝程序包來在客戶端計算機上安裝一些字體,並將其部署到C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\FontsInstaller
下的先決條件文件夾中。一切都很好,引用它作爲Visual Studio 2010的先決條件,我能夠發佈應用程序沒有問題。ClickOnce先決條件:錯誤:發佈的安裝程序可能已損壞
,另一方面客戶端哈希驗證過程中得到一個錯誤:
Verifying file hash
Error: Setup has detected that the file 'C:\Users\RMORAN~1\AppData\Local\Temp\VSD4684.tmp\FontsInstaller\fontsinstaller.msi' has either changed since it was initially published or may be corrupt.
我試過,包括散列,並與引導程序清單生成排除它,我總是在客戶端上相同的結果。只要散列驗證失敗,該文件就會立即刪除(出於安全原因)。
現在,我發現一個Microsoft Connect bug report說:
"I have a custom bootstrapper package installed as a prerequisite for my application. When I build this on a system that has Visual Studio 2012 installed, the installation fails with the following error:
Setup has detected that the file '...' has either changed since it was initially published or may be corrupt.
I am building in Visual Studio 2010, with no changes to the package or projects. When Visual Studio 2012 is not installed, this works as expected."
我試過,沒有安裝VS2012另一個工作站上建立這個安裝程序,並把它傳遞客戶端上的哈希驗證(我遇到了一個問題,簽署,但那是一個不同的故事)。對於具有VS2012的生成機器而言,這確實是一個問題,而不是客戶機,因爲構建在我的原始工作站上的程序包在沒有VS2012的機器上也會出現故障。
是否有其他人遇到過這個問題,如果是的話,您是否發現了一個解決方法,除了沒有安裝VS2012?
同樣的問題!安裝vs2012後,我的自定義引導程序包不想用clickonce安裝。你解決了嗎? – giammin