Skip to main content

Blogging about SharePoint

Go Search
Home
Blogging about SharePoint
Public Speaking
  

Michael Blumenthal's BlumenthalIT.NET > Blogging about SharePoint > Posts > Video Posted: InfoPath form to create a WSS Installer Configuration File
Video Posted: InfoPath form to create a WSS Installer Configuration File

I’m in the Office 2010 Technical Preview program, so I have started playing with the Office 2010 client applications.  I’m using Outlook 2010 Tech Preview as my email client, and I like the Quick Steps.  I wish I could share a QuickStep with my colleagues though – would be nice if there was a way to export & import Quick Step Definitions.

Meanwhile, I saw this blog post from the InfoPath 2010 team:(http://blogs.msdn.com/infopath/archive/2009/07/13/install-the-office-2010-technical-preview-and-win-an-xbox-360-elite.aspx) and put together an entry for the contest. It’s an InfoPath form that creates the xml file needed if you want to do an unattended install of WSS 3.0.

Here’s the video: http://communityclips.officelabs.com/Video.aspx?videoId=e37ddba5-448c-402f-b06e-bd87ed0f5bd5

In the video, I also feature a PowerShell script that removes the namespaces from the xml file that the InfoPath form generates.  The PowerShell function that I created is very simple. The one possibly unusual thing it contains is a string intentionally split across lines.  I did this because it was the easiest way I could think of to specify a carriage return (“\n” isn’t valid here).

function global:Clean-WSSConfig($filename)
{
	get-content $filename | foreach {$_.Replace("ns1:","")} | foreach {$_.Replace("my:","")} |
		foreach {$_.Replace("<Config","

<Config")}
 Write-Host "Namespaces Removed!"
}

One of the neat things about InfoPath 2010 Tech Preview is that it let me specify datasource fields by giving it an existing xml file. I took a sample WSS config file, added a namespace directive to it, and imported it into my InfoPath form!

--Michael

Comments

There are no comments yet for this post.
Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Body *


Please put your name at the end of your comment as the Name field doesn't display in the main view of the comments.

Name: *


Your name.  If you first name is Michael, please provide initials or the like to clearly distinguish your name from Michael Blumenthal's.
Also, this field does not appear in the main view of the comments.

Need Paid Consulting Services?

Are you interested in engaging a SharePoint consultant for fee-based consulting services?  If so, I can have an Account Executive from my employer contact you.  Other site visitors will not see this column.

Additional Contact Information

Please provide additional contact information if you need a direct response.  Other site visitors will not see this column.

What is tomorrow's date? *

This is a weak CAPTCHA based on advice from a tweet from @ToddKlindt.
Attachments