VSTO Outlook加载项安装失败

问题描述 投票:0回答:1

我在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个回答
0
投票

根据在您的日志中找到的错误消息:

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 framework 4.7.2。

© www.soinside.com 2019 - 2024. All rights reserved.