客户端在使用VS2010(.净4)



客户端在运行已部署的应用程序时遇到错误

主计算机需要先安装 .Net 4,然后才能运行应用。这是我的应用程序先决条件页面:

先决条件配置快照

发布成功,客户端想要运行应用程序,但结果是:文件已移动或损坏。快照

这是错误日志详细信息文件:

The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [InstallMode] = SameSite {string}
Property: [ProcessorArchitecture] = AMD64 {string}
Property: [VersionNT] = 6.1.1 {version}
Running checks for package 'Windows Installer 3.1', phase BuildList
The following properties have been set for package 'Windows Installer 3.1':
Running checks for command 'WindowsInstaller3_1WindowsInstaller-KB893803-v2-x86.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '3.1': true
Result of checks for command 'WindowsInstaller3_1WindowsInstaller-KB893803-v2-x86.exe' is 'Bypass'
'Windows Installer 3.1' RunCheck result: No Install Needed
Running checks for package 'Microsoft .NET Framework 4 (x86 and x64)', phase BuildList
Reading value 'Version' of registry key 'HKLMSoftwareMicrosoftNET Framework SetupNDPv4Full'
Unable to read registry value
Not setting value for property 'DotNet40Full_TargetVersion'
The following properties have been set for package 'Microsoft .NET Framework 4 (x86 and x64)':
Running checks for command 'DotNetFX40dotNetFx40_Full_x86_x64.exe'
Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': false
Skipping ByPassIf because Property 'DotNet40Full_TargetVersion' was not defined
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
Result of running operator 'VersionLessThan' on property 'VersionNT' and value '5.1.2': false
Result of running operator 'ValueEqualTo' on property 'ProcessorArchitecture' and value 'IA64': false
Result of checks for command 'DotNetFX40dotNetFx40_Full_x86_x64.exe' is 'Install'
Running checks for command 'DotNetFX40dotNetFx40_Full_setup.exe'
Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': true
Result of checks for command 'DotNetFX40dotNetFx40_Full_setup.exe' is 'Bypass'
'Microsoft .NET Framework 4 (x86 and x64)' RunCheck result: Install Needed
Running checks for package 'Microsoft Visual Studio 2010 Report Viewer', phase BuildList
Reading value 'Install' of registry key 'HKLMSoftwareMicrosoftDevDivVBServicing10.0ROS'
Read integer value 1
Setting value '1 {int}' for property 'IsViewerInstalled'
The following properties have been set for package 'Microsoft Visual Studio 2010 Report Viewer':
Property: [IsViewerInstalled] = 1 {int}
Running checks for command 'ReportViewerReportViewer.exe'
Result of running operator 'ValueExists' on property 'IsViewerInstalled': true
Result of checks for command 'ReportViewerReportViewer.exe' is 'Bypass'
'Microsoft Visual Studio 2010 Report Viewer' RunCheck result: No Install Needed
EULA for components 'Microsoft .NET Framework 4 (x86 and x64)' was accepted.
Copying files to temporary directory "C:UsersADMINI~1AppDataLocalTemp2VSD1986.tmp"
Downloading files to "C:UsersADMINI~1AppDataLocalTemp2VSD1986.tmp"
(1/12/2014 11:24:38 AM) Downloading 'DotNetFX40dotNetFx40_Full_x86_x64.exe' from 'http://10.15.33.176/DotNetFX40/dotNetFx40_Full_x86_x64.exe' to 'C:UsersADMINI~1AppDataLocalTemp2VSD1986.tmp'
Download completed at 1/12/2014 11:24:38 AM
Verifying file integrity of C:UsersADMINI~1AppDataLocalTemp2VSD1986.tmpDotNetFX40dotNetFx40_Full_x86_x64.exe
Verifying file hash
Error: Setup has detected that the file 'C:UsersADMINI~1AppDataLocalTemp2VSD1986.tmpDotNetFX40dotNetFx40_Full_x86_x64.exe' has either changed since it was initially published or may be corrupt.

请帮帮我!

经过 4 天的谷歌搜索并尝试不同的解决方案最后我发现因为我的计算机上同时有 VS2010 和 VS2013,使用 vs2010 部署使用 .net 4.5 SDK 它有不同的公钥,然后安装程序无法验证安装文件安装失败。最后卸载.net 4.5 SDK给了我一个技巧。

最新更新