Script or Unattend for Adding Features to Microsoft Office InfoPath 2007

Posted on 2009-12-21
Last Modified: 2012-05-08
We've recently started publishing InfoPath 2007 Forms to SharePoint, and I've been getting an error on most our clients' computers.  The error message boils down to:

"The required version of the Microsoft .NET Framework is not installed on your computer or the InfoPath Primary Interop Assembly (PIA) is not registered. Use Add or Remove Programs in Control Panel to make sure that the required version of the Microsoft .NET Framework is installed. Or install it using Windows Update and run the Setup program again to confirm that the corresponding version of the .NET Programmability Support is installed, or contact your system administrator.

I've checked that all our systems have the necessary .NET Framework 2.0 installed, but it seems that the .NET Programmability Support is not installed.  

see this article:

See also, this MS KB:

While I've written up a nice step-by-step for our end users to manually add the .NET Programmability Support for InfoPath, I'd like to find an automated or scripted solution.

Anyone out there know how to programatically initiate an Add or Remove Features function that a user would normally do via the control panel?

All our end users are on WinXP SP3.

Question by:HSWENT

    Author Comment

    I ran across this article:

    Does anyone with in-depth deployment or scripting experience have a suggestion how I would push a simple settings change and have .NET Programmabiliy Support for InfoPath feature to "run from computer" as opposed to being "not installed"?
    LVL 12

    Expert Comment

    if possible install .net frame work 3.5 sp1.  thats what we are running on clients.  see if that fixes it and if so, then you can see if they can push it down to the client machines.  

    Accepted Solution

    It turned out it is not a .net framework 3.5 sp1 issue... there simply was no way I could figure out how to add the .NET Programmability Support as a push from our System Center.  We ended up creating a step-by-step article that teaches end users how to add that through Add/Remove Programs and changing the installation of InfoPath 2007 to include .NET Programmability Support.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
    How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    This video discusses moving either the default database or any database to a new volume.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now