【问题标题】:VSTO Outlook add-in installation FailVSTO Outlook 加载项安装失败
【发布时间】:2020-06-09 07:13:27
【问题描述】:

我在 Visual Studio 2019 中发布了一个 VSTO 项目,生成了一个 .vsto 和 .exe 文件。我想将加载项安装到另一台 PC 上,但安装失败。

有谁知道错误发生了什么?

这是我发布项目所遵循的步骤:https://docs.microsoft.com/en-us/visualstudio/vsto/deploying-an-office-solution-by-using-clickonce?view=vs-2019

这是安装日志文件。非常感谢。

The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [InstallMode] = HomeSite {string}
Property: [NTProductType] = 1 {int}
Property: [ProcessorArchitecture] = AMD64 {string}
Property: [VersionNT] = 10.0.0 {version}
Running checks for package 'Microsoft .NET Framework 4.7.2 (x86 and x64)', phase BuildList
Reading value 'Release' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full'
Read integer value 394802
Setting value '394802 {int}' for property 'DotNetFull_Release'
Reading value 'v4' of registry key 'HKLM\SOFTWARE\Microsoft\NET Framework Setup\OS Integration'
Read integer value 1
Setting value '1 {int}' for property 'DotNetFull_OSIntegrated'
The following properties have been set for package 'Microsoft .NET Framework 4.7.2 (x86 and x64)':
Property: [DotNetFull_OSIntegrated] = 1 {int}
Property: [DotNetFull_Release] = 394802 {int}
Running checks for command 'DotNetFX472\NDP472-KB4054530-x86-x64-AllOS-ENU.exe'
Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': true
Result of checks for command 'DotNetFX472\NDP472-KB4054530-x86-x64-AllOS-ENU.exe' is 'Bypass'
Running checks for command 'DotNetFX472\NDP472-KB4054531-Web.exe'
Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': false
Result of running operator 'ValueGreaterThan' on property 'DotNetFull_Release' and value '461808': false
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
Result of running operator 'VersionLessThan' on property 'VersionNT' and value '6.1.0': false
Result of running operator 'ValueEqualTo' on property 'ProcessorArchitecture' and value 'IA64': false
Result of checks for command 'DotNetFX472\NDP472-KB4054531-Web.exe' is 'Install'
'Microsoft .NET Framework 4.7.2 (x86 and x64)' RunCheck result: Install Needed
Running checks for package 'Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64)', phase BuildList
Reading value 'Version' of registry key 'HKLM\SOFTWARE\Microsoft\VSTO Runtime Setup\v4'
Read string value '10.0.60301'
Setting value '10.0.60301 {string}' for property 'VSTORuntimeVersionOfficeInstalled'
Reading value 'Version' of registry key 'HKLM\SOFTWARE\Microsoft\VSTO Runtime Setup\v4R'
Unable to read registry value
Not setting value for property 'VSTORuntimeVersionInstalled'
The following properties have been set for package 'Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64)':
Property: [VSTORuntimeVersionOfficeInstalled] = 10.0.60301 {string}
Running checks for command 'VSTOR40\vstor_redist.exe'
Skipping ByPassIf because Property 'VSTORuntimeVersionInstalled' was not defined
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VSTORuntimeVersionOfficeInstalled' and value '10.0.50903': true
Result of checks for command 'VSTOR40\vstor_redist.exe' is 'Bypass'
'Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64)' RunCheck result: No Install Needed
EULA for components 'Microsoft .NET Framework 4.7.2 (x86 and x64)' was accepted.
Copying files to temporary directory "C:\Users\ENOTI_~1\AppData\Local\Temp\VSD2D5D.tmp\"
Downloading files to "C:\Users\ENOTI_~1\AppData\Local\Temp\VSD2D5D.tmp\"
(09-06-2020 PM 02:56:57) Downloading 'DotNetFX472\NDP472-KB4054531-Web.exe' from 'http://go.microsoft.com/fwlink/?LinkId=863262&clcid=0x409' to 'C:\Users\ENOTI_~1\AppData\Local\Temp\VSD2D5D.tmp\'
Download completed at 09-06-2020 PM 02:56:57
Verifying file integrity of C:\Users\ENOTI_~1\AppData\Local\Temp\VSD2D5D.tmp\DotNetFX472\NDP472-KB4054531-Web.exe
WinVerifyTrust returned 0
File trusted
Running checks for package 'Microsoft .NET Framework 4.7.2 (x86 and x64)', phase BeforePackage
Reading value 'Release' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full'
Read integer value 394802
Setting value '394802 {int}' for property 'DotNetFull_Release'
Reading value 'v4' of registry key 'HKLM\SOFTWARE\Microsoft\NET Framework Setup\OS Integration'
Read integer value 1
Setting value '1 {int}' for property 'DotNetFull_OSIntegrated'
The following properties have been set for package 'Microsoft .NET Framework 4.7.2 (x86 and x64)':
Property: [DotNetFull_OSIntegrated] = 1 {int}
Property: [DotNetFull_Release] = 394802 {int}
Running checks for command 'DotNetFX472\NDP472-KB4054531-Web.exe'
Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': false
Result of running operator 'ValueGreaterThan' on property 'DotNetFull_Release' and value '461808': false
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
Result of running operator 'VersionLessThan' on property 'VersionNT' and value '6.1.0': false
Result of running operator 'ValueEqualTo' on property 'ProcessorArchitecture' and value 'IA64': false
Result of checks for command 'DotNetFX472\NDP472-KB4054531-Web.exe' is 'Install'
'Microsoft .NET Framework 4.7.2 (x86 and x64)' RunCheck result: Install Needed
Verifying file integrity of C:\Users\ENOTI_~1\AppData\Local\Temp\VSD2D5D.tmp\DotNetFX472\NDP472-KB4054531-Web.exe
WinVerifyTrust returned 0
File trusted
Installing using command 'C:\Users\ENOTI_~1\AppData\Local\Temp\VSD2D5D.tmp\DotNetFX472\NDP472-KB4054531-Web.exe' and parameters ' /q /norestart /ChainingPackage FullX64Bootstrapper /lcid 1033'
Process exited with code 1307
Status of package 'Microsoft .NET Framework 4.7.2 (x86 and x64)' after install is 'InstallFailed'

【问题讨论】:

    标签: c# vsto outlook-addin


    【解决方案1】:

    根据你的日志中发现的错误信息:

    Status of package 'Microsoft .NET Framework 4.7.2 (x86 and x64)' after install is 'InstallFailed'
    

    您只需要首先正确安装先决条件。其中之一是 .net 框架。

    您帖子中提到的文章包括以下几点:

    Choose the Prerequisites button.
    
    In the Prerequisites dialog box, ensure that the Create setup program to install prerequisite components check box is selected.
    
    In the Choose which prerequisites to install list, select the check boxes for Windows Installer 4.5 and the appropriate .NET Framework package.
    
    For example, if your solution targets the .NET Framework 4.5, select the check boxes for Windows Installer 4.5 and Microsoft .NET Framework 4.5 Full.
    

    如果它是您的目标框架,您似乎需要添加 .net 框架 4.7.2。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-12-10
      • 1970-01-01
      • 2010-11-11
      • 2021-06-29
      • 1970-01-01
      • 2017-11-04
      • 1970-01-01
      相关资源
      最近更新 更多