问题
I downloaded the OpenXML SDK Productivity Tool 2.5 from Microsoft's Website
However when I want to install it, I get told I need to install .NET Framework 4 first and the install won't continue without it. I already have .NET Framework 4.6 installed. I have installed Visual Studio 2015 Update 1.
You should have .NET Framework 4.0 installed before you setup Open XML SDK 2.5
Please install the .NET Framework and run this setup again. The .NET Framework can be obtained from the web. Would you like to do this now?
I already have .net Framework 4 installed. This is the message if I Click Yes to install it on the downloaded installer for it.
Version 2.5 of the tool I could find.
In my windows features I don't have an option for .NET 4.0 and only have 3.5 and 4.6 which are already ticked.
Question:
How do I install the Open XML Productivity Tool?
回答1:
The .NET version messages were a red herring.
It turned out to be a privileges issue.
I right clicked on the msi and selected Install as administrator
and it installed correctly.
回答2:
i have same problem (.Net Framework ) for install VS2015
go to control panel - Programs & Feature - Turn Windows Features On or Off , and check all .Net Framework Features
回答3:
The "Install Instructions" here: https://www.microsoft.com/en-us/download/details.aspx?id=30425
Say the following:
Double-click the OpenXMLSDKV25.msi or OpenXMLSDKToolV25.msi program file on your hard disk drive to start the setup program.
It reads like you may do one or the other.
Like the smaller file may download only what you need, where the larger file contains everything you might not need. WRONG!
All this time I had been trying the 25MB OpenXMLSDKToolV25.msi file and seeing the same error.
I downloaded the 2.5MB OpenXMLSDKV25.msi file, ran that with no errors, but still nothing installed.
Then I ran the OpenXMLSDKToolV25.msi file and now I have the "Microsoft Office Open XML SDK 2.5" installed as an app and I verified it works.
来源:https://stackoverflow.com/questions/34218294/how-to-install-openxml-sdk-productivity-tool-2-5-on-windows-10