2014-09-05 65 views
0

Similar thread,過程與代碼5100而退出安裝的ClickOnce安裝內置的VS 2013

我使用Windows 7 SP1企業64位操作系統。我已經在Visual Studio 2013專業版中創建了一個具有.NET框架4.5.1的先決條件的部署項目。

如果我單獨啓動.net框架設置,那麼我不會觀察到任何問題,並且安裝正確。

當我啓動的setup.exe,
- 它首先顯示EULA屏幕上,我打了接受按鈕
- 它顯示了.NET框架4.5.1安裝進度(它提示我允許權限提升)
- 突然顯示下面的錯誤並停止。

enter image description here

日誌文件扣看起來像下面,

The following properties have been set: 
Property: [AdminUser] = true {boolean} 
Property: [InstallMode] = SameSite {string} 
Property: [NTProductType] = 1 {int} 
Property: [ProcessorArchitecture] = AMD64 {string} 
Property: [VersionNT] = 6.1.0 {version} 
Running checks for package 'Microsoft .NET Framework 4.5.1 (x86 and x64)', phase BuildList 
Reading value 'Release' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full' 
Unable to read registry value 
Not setting value for property 'DotNet45Full_Release' 
The following properties have been set for package 'Microsoft .NET Framework 4.5.1 (x86 and x64)': 
Running checks for command 'DotNetFX451\NDP451-KB2858728-x86-x64-AllOS-ENU.exe' 
Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': false 
Skipping ByPassIf because Property 'DotNet45Full_Release' was not defined 
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionNT' and value '6.3.0': false 
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false 
Result of running operator 'VersionLessThan' on property 'VersionNT' and value '6.0.0': false 
Result of running operator 'ValueEqualTo' on property 'ProcessorArchitecture' and value 'IA64': false 
Result of checks for command 'DotNetFX451\NDP451-KB2858728-x86-x64-AllOS-ENU.exe' is 'Install' 
Running checks for command 'DotNetFX451\NDP451-KB2859818-Web.exe' 
Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': true 
Result of checks for command 'DotNetFX451\NDP451-KB2859818-Web.exe' is 'Bypass' 
'Microsoft .NET Framework 4.5.1 (x86 and x64)' RunCheck result: Install Needed 
EULA for components 'Microsoft .NET Framework 4.5.1 (x86 and x64)' was accepted. 
Copying files to temporary directory "C:\Users\user001\AppData\Local\Temp\VSDA8FB.tmp\" 
Copying from 'C:\Users\user001\Desktop\NET framework\Products\Release\DotNetFX451\NDP451-KB2858728-x86-x64-AllOS-ENU.exe' to 'C:\Users\user001\AppData\Local\Temp\VSDA8FB.tmp\DotNetFX451\NDP451-KB2858728-x86-x64-AllOS-ENU.exe' 
Verifying file integrity of C:\Users\user001\AppData\Local\Temp\VSDA8FB.tmp\DotNetFX451\NDP451-KB2858728-x86-x64-AllOS-ENU.exe 
WinVerifyTrust returned 0 
File trusted 
Running checks for package 'Microsoft .NET Framework 4.5.1 (x86 and x64)', phase BeforePackage 
Reading value 'Release' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full' 
Unable to read registry value 
Not setting value for property 'DotNet45Full_Release' 
The following properties have been set for package 'Microsoft .NET Framework 4.5.1 (x86 and x64)': 
Running checks for command 'DotNetFX451\NDP451-KB2858728-x86-x64-AllOS-ENU.exe' 
Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': false 
Skipping ByPassIf because Property 'DotNet45Full_Release' was not defined 
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionNT' and value '6.3.0': false 
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false 
Result of running operator 'VersionLessThan' on property 'VersionNT' and value '6.0.0': false 
Result of running operator 'ValueEqualTo' on property 'ProcessorArchitecture' and value 'IA64': false 
Result of checks for command 'DotNetFX451\NDP451-KB2858728-x86-x64-AllOS-ENU.exe' is 'Install' 
'Microsoft .NET Framework 4.5.1 (x86 and x64)' RunCheck result: Install Needed 
Verifying file integrity of C:\Users\user001\AppData\Local\Temp\VSDA8FB.tmp\DotNetFX451\NDP451-KB2858728-x86-x64-AllOS-ENU.exe 
WinVerifyTrust returned 0 
File trusted 
Installing using command 'C:\Users\user001\AppData\Local\Temp\VSDA8FB.tmp\DotNetFX451\NDP451-KB2858728-x86-x64-AllOS-ENU.exe' and parameters ' /q /norestart /ChainingPackage FullX64Bootstrapper' 
Process exited with code 5100 
Status of package 'Microsoft .NET Framework 4.5.1 (x86 and x64)' after install is 'InstallFailed' 

我不知道它是什麼擊中問題。任何幫助解決這一點非常感謝。

回答

1

我發現setup.exe是在兼容模式下運行的,它阻塞了.net框架。

我檢查了C:\ Program Files文件(x86)\ Microsoft SDKs \ Windows \ v8.1A \ Bootstrapper \ Packages \ DotNetFX451 \ Product.xml文件,並刪除了Agrument屬性值以檢查它正在拋出什麼錯誤。它投擲了

阻止問題
.NET Framework安裝程序無法在程序兼容模式下運行。

我從setup.exe中刪除了這個兼容性設置,現在它工作正常。