Web.config Transformation in VS2010

Web.config Transformation

For Web application deployment, Visual Studio 2010 introduces XML Document Transform (XDT), which is a feature that lets you transform a Web.config file from development settings to production settings. Transformation settings are specified in transform files named web.debug.config, web.release.config, and so on. (The names of these files match MSBuild configurations.) A transform file includes just the changes that you need to make to a deployed Web.config file. You specify the changes by using simple syntax.

The following example shows a portion of a web.release.config file that might be produced for deployment of your release configuration. The Replace keyword in the example specifies that during deployment the connectionString node in the Web.config file will be replaced with the values that are listed in the example.

<connectionStrings xdt:Transform="Replace">

<add name="BlogDB" connectionString="connection string detail]" />

</connectionStrings>

For more information, see Web Deployment: Web.Config Transformation on Vishal Joshi’s blog.

Posted in: software | Tags: vs 2010 visual studio 2010 web.config connectionstrings xdt connectionstring

Web pros: WebsiteSpark, Web PI and more!

WebsiteSpark

WebsiteSpark is a program designed to jumpstart Web development for individuals or small companies who make a living on the Web.  The program is free to join and runs for three years with no cost obligations other than a $100 program fee, payable on exit.  What is in it for you?

  • Windows Web Server 2008 R2 – 4 processor licenses for production use!
  • SQL Server 2008 – 4 processor licenses for production use!
  • Expression Studio 3 – 1 license including Expression Web, Blend and Sketchflow
  • Expression Web – 2 licenses
  • Visual Studio 2008 Professional Edition – 3 licenses
  • DotNetPanel control panel (to manage your servers, and allow your customers to manage their site!)

Beyond just software you also get free support, training and Microsoft will even help drive business your way.  Anyone can join as long as 1) you build web sites or applications for other people and 2) your company has less than 10 employees.  If you meet these requirements, sign-up today!  As part of the sign-up process you will need a referral code.  Contact me if you need a code, I’d be happy to sponsor you into the program!  Read more about the program on the WebsiteSpark portal. 

Web Platform Installer 2

I’m also happy to announce that the Web Platform Installer 2.0 is available in final release form!  The Web Platform Installer (sometimes called Web PI) makes it easy to install the latest components of the Microsoft Web Platform including IIS, ASP.NET, Visual Web Developer, SQL Express and more!  New for the final release, we’ve fixed many bugs, improved usability, added new products including Expression Web, Azure Tools and the latest releases also being announced today.  We’re also launching WebPI in 9 different languages and allow users around the world to access the Web Platform in their regional language.  Look for more components of the Microsoft Web Platform to be added to Web PI v2 over time.  Web PI also makes it super easy to install any of the Web applications in the Windows Web App Gallery.  Web PI can also now install both PHP and MySQL for applications that require it.  Install Web PI today!

Trivia: since launching the Windows Web Application Gallery at MIX in March 2009 – just 5 months ago – Web PI has installed more than 840,000 applications!  Do you have a killer Web application just waiting to be discovered by the masses?  Want Microsoft to drive users to your community?  Submit your Web app to the gallery today!

Web Deployment Tool

The IIS team just released the final 1.0 version of the Web Deployment Tool, a super powerful deployment technology that you are going to see a lot of going forward.  It is like a swiss army knife for Web masters.  It can migrate sites or entire servers from IIS6 to IIS7.  It can synchronize Web sites or applications between multiple servers.  You can package a Web site or application and then push it out to your entire server farm.  It knows how to not only replicate content, but also configuration, databases, COM dll, GAC assemblies, certificates, ACLs, and a whole lot more.  After about three years of development I’m super excited to see this thing in final release form.  It is already being integrated into Visual Studio 2010 and from there you’ll be able to not only build but also package and deploy your applications with just a few clicks of the mouse.  Other teams around Microsoft are picking this thing up and integrating it as well, so you definitely want to get up to speed with this tool.  Download it today!!

Database Manager 1.0

The IIS team just released the 1.0 version of Database Manager, and IIS Manager extension that makes it super easy to manage your database, local or remote, from within the IIS Manager tool.  This thing rocks!  It supports SQL Server and MySQL and is one powerful tool, and completely free.  Check it out!

Search Engine Optimization Toolkit – Beta 2

The IIS team also announced the released the beta 2 of the Search Engine Optimization Toolkit, another IIS Manager extension that makes it possible to learn things about your site you can’t find anywhere else.  It crawls your Web site, local or remote, and reports on dozens of well known but hard to discover issues that cause your site to be less relevant to search engines.  This version includes many bugs fixes and new features over the previous release, definitely check it out and send feedback to the team on the forums. 

Application Request Routing 2 – Release Candidate

The IIS team is also releasing a Release Candidate of the 2.0 version of the Application Request Routing extension for IIS7/IIS7.5, which provides built-in routing, load balancing, proxying and caching support on the IIS platform.  This release includes an all-new disk cache option, bug fixes and performance improvements.  Read more about the release in the learn portal.   This powerful extension is available for free, download it today!

Posted in: software | Tags: release candidate websitespark dotnetpanel web platform installer database manager proxying application request routing

Windows Installer

Microsoft Windows Installer is an installation and configuration service provided with Windows. The installer service enables customers to provide better corporate deployment and provides a standard format for component management. The installer also enables the advertisement of applications and features according to the operating system. For more information, see Platform Support of Advertisement.

This documentation describes Windows Installer 5.0 and earlier versions. Not all the capabilities available in later Windows Installer versions are available in earlier versions. This documentation does not describe versions earlier than Windows Installer 2.0. Installation packages and patches that are created for Windows Installer 2.0 can still be installed by using Windows Installer 3.0 and later.

Windows Installer 3.0 and later, can install multiple patches with a single transaction that integrates installation progress, rollback, and reboots. The installer can apply patches in a specified order regardless of the order that the patches are provided to the system. Patching using Windows Installer 3.0 only updates files affected by the patch and can be significantly faster than earlier installer versions. Patches installed with Windows Installer 3.0 or later can be uninstalled in any order to leave the state of the product the same as if the patch was never installed. Accounts with administrator privileges can use the API of Windows Installer 3.0 and later to query and inventory product, feature, component, and patch information. The installer can be used to read, edit, and replace source lists for network, URL, and media sources. Administrators can enumerate across user and install contexts, and manage source lists from an external process.

Windows Installer 4.5 and later can install multiple installation packages using transaction processing. If all the packages in the transaction cannot be installed successfully, or if the user cancels the installation, the Windows Installer can roll back changes and restore the computer to its original state. The installer ensures that all the packages belonging to a multiple-package transaction are installed or none of the packages are installed.

Beginning with Windows Installer 5.0, a package can be authored to secure new accounts, Windows Services, files, folders, and registry keys. The package can specify a security descriptor that denies permissions, specifies inheritance of permissions from a parent resource, or specifies the permissions of a new account. For information, see Securing Resources. The Windows Installer 5.0 service can enumerate all components installed on the computer and obtain the key path for the component. For more information, see Enumerating Components. By Using Services Configuration, Windows Installer 5.0 packages can customize the services on a computer. Setup developers can use Windows Installer 5.0 and Single Package Authoring to develop single installation packages capable of installing an application in either the per-machine or per-user installation context.

Where Applicable

Windows Installer enables the efficient installation and configuration of your products and applications. The installer provides new capabilities to advertise features without installing them, to install products on demand, and to add user customizations.

Developer Audience

This documentation is intended for software developers who want to make applications that use Windows Installer. It provides general background information about installation packages and the installer service. It contains complete descriptions of the application programming interface and elements of the installer database. This documentation also contains supplemental information for developers who want to use a table editor or a package creation tool to make or maintain an installation.

Run-Time Requirements

Windows Installer 5.0 will be released with, and require Windows Server 2008 R2 or Windows 7. Versions earlier than Windows Installer 5.0 were released with Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP, and Windows 2000.

Windows Installer 4.5 requires Windows Server 2008, Windows Vista, Windows XP with Service Pack 2 (SP2) and later, and Windows Server 2003 with Service Pack 1 (SP1) and later.

Windows Installer 4.0 requires Windows Vista or Windows Server 2008. There is no redistributable for installing Windows Installer 4.0 on other operating systems. An updated version of Windows Installer 4.0, which does not add any new features, is available in Windows Vista with Service Pack 1 (SP1) and Windows Server 2008.

Windows Installer 3.1 requires Windows Server 2003, Windows XP, or Windows 2000 with Service Pack 3 (SP3).

Windows Installer 3.0 requires Windows Server 2003, Windows XP, or Windows 2000 with SP3. Windows Installer 3.0 is included in Windows XP with Service Pack 2 (SP2). It is available as a redistributable for Windows 2000 Server with Service Pack 3 (SP3) and Windows 2000 Server with Service Pack 4 (SP4), Windows XP RTM and Windows XP with Service Pack 1 (SP1), and Windows Server 2003 RTM.

Windows Installer Redistributables are available for Windows Installer 4.5 and earlier versions. There is no redistributable available for Windows Installer 4.0.

Windows Installer 2.0 is contained in Windows Server 2003 and Windows XP.

Windows Installer 2.0 is available as a package for installing or upgrading to Windows Installer 2.0 on Windows 2000. This package should not be used to install or upgrade Windows Installer 2.0 on Windows Server 2003 and Windows XP.

You can find all the available Windows Installer redistributables at the Microsoft Download Center.

Posted in: software | Tags: windows installer redistributable microsoft windows installer 4.5 multiple installation windows services registry key