<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Joy of Setup</title>
	<atom:link href="http://www.joyofsetup.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joyofsetup.com</link>
	<description>Bob Arnson on setup and servicing with WiX and MSI</description>
	<lastBuildDate>Tue, 03 Apr 2012 14:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>WiX v3.6 RC0 is now available</title>
		<link>http://www.joyofsetup.com/2012/04/03/wix-v3-6-rc0-is-now-available/</link>
		<comments>http://www.joyofsetup.com/2012/04/03/wix-v3-6-rc0-is-now-available/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 14:00:00 +0000</pubDate>
		<dc:creator>Bob Arnson</dc:creator>
				<category><![CDATA[WiX]]></category>
		<category><![CDATA[wix36]]></category>

		<guid isPermaLink="false">http://www.joyofsetup.com/?p=311</guid>
		<description><![CDATA[As Rob announces, the RC0 build of WiX v3.6 is now available. Though traditionally &#8220;release candidate&#8221; means that the build is one that&#8217;s potentially shippable, we know we&#8217;re not quite done yet. There are bugs we still intend to fix &#8230; <a href="http://www.joyofsetup.com/2012/04/03/wix-v3-6-rc0-is-now-available/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As <a href="http://robmensching.com/blog/posts/2012/4/3/WiX-v3.6-Release-Candidate-Zero-available">Rob announces</a>, the RC0 build of WiX v3.6 is now available. Though traditionally &#8220;release candidate&#8221; means that the build is one that&#8217;s potentially shippable, we know we&#8217;re not quite done yet. There are <a href="https://sourceforge.net/tracker/?limit=100&amp;func=&amp;group_id=105970&amp;atid=642714&amp;assignee=&amp;status=1&amp;category=&amp;artgroup=866580&amp;keyword=&amp;submitter=&amp;artifact_id=&amp;assignee=&amp;status=1&amp;category=&amp;artgroup=1118441&amp;submitter=&amp;keyword=&amp;artifact_id=&amp;submit=Filter&amp;mass_category=&amp;mass_priority=&amp;mass_resolution=&amp;mass_assignee=&amp;mass_artgroup=&amp;mass_status=&amp;mass_cannedresponse=">bugs we still intend to fix</a> and the potential for more. That potential is the bugs you find and file, so <a href="http://wixtoolset.org/releases/v3.6/rc0">go download</a>, rebuild your packages and bundles, and make sure WiX v3.6 is the best release of WiX yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joyofsetup.com/2012/04/03/wix-v3-6-rc0-is-now-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting shelf space in the Store</title>
		<link>http://www.joyofsetup.com/2012/02/01/getting-shelf-space-in-the-store/</link>
		<comments>http://www.joyofsetup.com/2012/02/01/getting-shelf-space-in-the-store/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 05:01:28 +0000</pubDate>
		<dc:creator>Bob Arnson</dc:creator>
				<category><![CDATA[Etc]]></category>
		<category><![CDATA[Windows Installer]]></category>
		<category><![CDATA[best practices]]></category>

		<guid isPermaLink="false">http://www.joyofsetup.com/?p=304</guid>
		<description><![CDATA[Reading the Windows Store for developers blog recently, I was pleasantly surprised to see that desktop (i.e., non-Metro-style) apps would be allowed to show up in the Windows Store. Desktop apps won&#8217;t get the same treatment as Metro-style apps, of &#8230; <a href="http://www.joyofsetup.com/2012/02/01/getting-shelf-space-in-the-store/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Reading the <a href="http://blogs.msdn.com/b/windowsstore/archive/2012/01/20/designing-the-windows-store-user-experience.aspx">Windows Store for developers blog</a> recently, I was pleasantly surprised to see that desktop (i.e., non-Metro-style) apps would be allowed to show up in the Windows Store. Desktop apps won&#8217;t get the same treatment as Metro-style apps, of course; instead of being able to install apps right from the Windows Store, desktop apps will have a similar listing page with a link to the developer&#8217;s site to handle download.</p>
<p>Still, it&#8217;s better than nothing &#8212; the Windows Store is likely to have a lot of window shoppers looking to buy apps.</p>
<p>However, a hurdle to get an app listing page is that the app must pass &#8220;certification.&#8221; In the past, this was known as the Windows Logo program and had many pages of technical requirements. In <a href="http://msdn.microsoft.com/library/windows/desktop/hh749939">Windows 8, the list is much smaller</a> and less prescriptive. For example, the Logo program for previous versions required the use of MSI, then required MSI or ClickOnce; for Windows 8, there are no technology restrictions.</p>
<p>Some requirements that struck me as interesting:</p>
<blockquote><p>1.2 Your app must not take a dependency on the VB6 runtime</p></blockquote>
<p>VB6, IE6 &#8212; anything v6 must go away. <img src='http://www.joyofsetup.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<blockquote><p>5.1 Your app must properly implement a clean, reversible installation</p>
<p>If the installation fails, the app should be able to roll it back and restore the machine to its previous state.</p></blockquote>
<p>If Windows 8 certification is anything like previous versions&#8217;, it will involve automated test suites that will highlight rollback that&#8217;s less than perfect.</p>
<blockquote><p>5.4 Your app must never block silent install/uninstall</p></blockquote>
<p>So don&#8217;t throw UI from custom actions and don&#8217;t rely on being able to prompt the user (i.e., also don&#8217;t break requirement #5.1).</p>
<blockquote><p>6.1 All executable files (.exe, .dll, .ocx, .sys, .cpl, .drv, .scr) must be signed with an Authenticode certificate</p></blockquote>
<p>MSI packages aren&#8217;t mentioned. But if you ship a Burn bundle or other bootstrapper .exe, that&#8217;s going to require signing.</p>
<blockquote><p>10.1 Your app must be installed in the Program Files folder by default</p></blockquote>
<p>There&#8217;s nothing mentioned that would exempt per-user apps in general from this requirement, though you can always request exceptions. Given the emphasis Metro places on per-user, restricted apps, perhaps this requirement will be extended/relaxed for per-user desktop apps too.</p>
<blockquote><p>10.6 Your app must write user data at first run and not during the installation in “per-machine” installations</p></blockquote>
<p>Long-time readers of <a href="http://wix.sourceforge.net/mailinglists.html#wix-users">wix-users</a> will recognize this as advice given again and again. Good to see Windows catching on. <img src='http://www.joyofsetup.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<blockquote><p>10.7 Exceptions and Waivers</p>
<p>A waiver is required for apps that write to the global assembly cache (GAC) .NET apps should keep assembly dependencies private, and store it in the app directory unless sharing an assembly is explicitly required.</p></blockquote>
<p>I suspect it&#8217;s a response to the GAC getting used too often when it&#8217;s not needed or very useful. (See also Rico Mariani&#8217;s <a href="http://blogs.msdn.com/b/ricom/archive/2012/01/31/ngen-or-not-the-rules-haven-t-changed-very-much-since-2004.aspx">blog post on using NGen</a>, which falls into the same boat.) Still, I&#8217;m mildly surprised to see it a requirement.</p>
<blockquote><p>12.5 App running under the WoW64 emulator should not attempt to subvert or bypass Wow64 virtualization mechanisms</p></blockquote>
<p>This one&#8217;s interesting, depending how struct &#8220;subvert&#8221; turns out to be. For example, several WiX custom actions make fairly trivial &#8220;subversions&#8221; of WoW64 to avoid the need for both 32-bit and 64-bit custom actions just to write to the right version of Program Files.</p>
<p>All in all, there&#8217;s nothing terribly surprising in this set of requirements. A lot of them just codify what&#8217;s already known as best practice for Windows apps in the age of UAC. Of course, this is just the first version of the certification requirements and Windows 8 isn&#8217;t yet shipping; there&#8217;s plenty of time for Microsoft to add, drop, or change requirements. In the end, you get to decide whether the effort of certification is worth having a presence in the Windows Store. Remember the Metro-style app folks, who have no choice in the matter: The Windows Store is the only way they can ship.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joyofsetup.com/2012/02/01/getting-shelf-space-in-the-store/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The new wixtoolset.org and weekly builds</title>
		<link>http://www.joyofsetup.com/2012/01/22/the-new-wixtoolset-org-and-weekly-builds/</link>
		<comments>http://www.joyofsetup.com/2012/01/22/the-new-wixtoolset-org-and-weekly-builds/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 20:53:06 +0000</pubDate>
		<dc:creator>Bob Arnson</dc:creator>
				<category><![CDATA[WiX]]></category>
		<category><![CDATA[wix36]]></category>

		<guid isPermaLink="false">http://www.joyofsetup.com/?p=297</guid>
		<description><![CDATA[wixtoolset.org is WiX&#8217;s new home. Eventually, everything can and will be hosted under one roof. For now, wixtoolset.org hosts news and weekly builds. (Mailing lists and bug and feature trackers remain on SourceForge and RTM builds remain on Codeplex.) Now &#8230; <a href="http://www.joyofsetup.com/2012/01/22/the-new-wixtoolset-org-and-weekly-builds/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://wixtoolset.org/">wixtoolset.org</a> is WiX&#8217;s new home. Eventually, everything can and will be hosted under one roof. For now, <a href="http://wixtoolset.org/">wixtoolset.org</a> hosts news and weekly builds. (Mailing lists and bug and feature trackers remain on <a href="https://sourceforge.net/projects/wix/">SourceForge</a> and RTM builds remain on <a href="http://wix.codeplex.com/">Codeplex</a>.)</p>
<p>Now that there&#8217;s a spot for weekly builds again, the hiatus that began with the release of WiX v3.6 beta in October is done. <a href="http://wixtoolset.org/releases/v3.6.2520.0">WiX v3.6.2520.0 is available</a> and contains almost <a href="http://wix.codeplex.com/SourceControl/changeset/changes/cce9f3391024">three months of features and fixes</a>. One of the nicest new features is a much-improved bootstrapper application for the WiX bundle installer.</p>
<p><img class="size-full wp-image-298 alignnone" style="border: 0pt none;" title="wixba" src="http://www.joyofsetup.com/wp-content/uploads/2012/01/wixba.png" alt="The WiX bootstrapper application" width="400" height="400" /></p>
<p>Take a look, install, try it out, and <a href="https://sourceforge.net/tracker/?group_id=105970&amp;atid=642714">report bugs</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joyofsetup.com/2012/01/22/the-new-wixtoolset-org-and-weekly-builds/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WiX v3.6 goes to beta</title>
		<link>http://www.joyofsetup.com/2011/10/24/wix-v3-6-goes-to-beta/</link>
		<comments>http://www.joyofsetup.com/2011/10/24/wix-v3-6-goes-to-beta/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 17:18:44 +0000</pubDate>
		<dc:creator>Bob Arnson</dc:creator>
				<category><![CDATA[WiX]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[wix36]]></category>

		<guid isPermaLink="false">http://www.joyofsetup.com/?p=294</guid>
		<description><![CDATA[The beta release of WiX v3.6 is now available: Get the bits from the WiX site on Codeplex. Read Rob&#8217;s blog post that describes the Burn features in v3.6 and the other little fixes we&#8217;ve made. Download, use, report bugs, &#8230; <a href="http://www.joyofsetup.com/2011/10/24/wix-v3-6-goes-to-beta/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://wix.codeplex.com/releases/view/75656">The beta release of WiX v3.6 is now available: Get the bits from the WiX site on Codeplex.</a> <a href="http://robmensching.com/blog/posts/2011/10/24/WiX-v3.6-Beta-released">Read Rob&#8217;s blog post that describes the Burn features in v3.6 and the other little fixes we&#8217;ve made.</a> Download, use, <a href="https://sourceforge.net/tracker/?limit=100&amp;func=&amp;group_id=105970&amp;atid=642714&amp;assignee=&amp;status=1&amp;category=&amp;artgroup=866580&amp;keyword=&amp;submitter=&amp;artifact_id=&amp;assignee=&amp;status=1&amp;category=&amp;artgroup=1118441&amp;submitter=&amp;keyword=&amp;artifact_id=&amp;submit=Filter&amp;mass_category=&amp;mass_priority=&amp;mass_resolution=&amp;mass_assignee=&amp;mass_artgroup=&amp;mass_status=&amp;mass_cannedresponse=">report bugs</a>, and <a href="https://sourceforge.net/mailarchive/forum.php?forum_name=wix-users">let us know how it goes</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joyofsetup.com/2011/10/24/wix-v3-6-goes-to-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Same as it ever was</title>
		<link>http://www.joyofsetup.com/2011/09/15/same-as-it-ever-was/</link>
		<comments>http://www.joyofsetup.com/2011/09/15/same-as-it-ever-was/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 20:32:46 +0000</pubDate>
		<dc:creator>Bob Arnson</dc:creator>
				<category><![CDATA[Windows Installer]]></category>
		<category><![CDATA[WiX]]></category>

		<guid isPermaLink="false">http://www.joyofsetup.com/?p=282</guid>
		<description><![CDATA[Microsoft&#8217;s BUILD conference is going on this week and it&#8217;s chock full of new information about Windows 8 (or whatever they end up calling it). The biggest news is the new Metro-style application, which includes the AppX package format for &#8230; <a href="http://www.joyofsetup.com/2011/09/15/same-as-it-ever-was/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Microsoft&#8217;s <a href="http://www.buildwindows.com/">BUILD conference</a> is going on this week and it&#8217;s chock full of new information about Windows 8 (or whatever they end up calling it). The biggest news is the new Metro-style application, which includes the AppX package format for installing them.</p>
<p>There are three primary buckets applications fall into in the brave new Windows 8 world:</p>
<ol>
<li>Metro-style</li>
<li>Windows 8 non-Metro-style</li>
<li>&#8220;Retro-style&#8221; (aka legacy, anything created before 2011)</li>
</ol>
<p>Metro-style apps get all the goodies Windows 8 offers, including AppX packaging I&#8217;ll blog about. As <a href="http://robmensching.com/blog/posts/2011/9/13/Setup-in-Windows-8-and-Visual-Studio">Rob describes</a>, deployment is a first-class citizen in Windows 8. Apps in the other two buckets have the exact same options they have in Windows 7. And by exact, I mean &#8220;really, almost exactly 100 percent.&#8221;</p>
<h2>No soup for you</h2>
<p>As is its wont, rather than fixing the weaknesses of its existing platform, Microsoft replaced it with an all-new platform with a different set of weaknesses. Naturally, Windows 8 still includes Windows Installer. But if you were hoping for some of the same deployment love for your non-Metro-style apps that the Windows team showered on Metro-style apps, I&#8217;m sorry to disappoint: For better or worse, Windows 8&#8242;s MSI is functionally identical to Windows 7&#8242;s MSI v5.0.</p>
<p>A quick spelunking in the Windows 8 SDK available to MSDN subscribers reveals mostly structual changes to the MSI header files. For example, the _WIN32_MSI macro is defined as &#8220;500&#8243; for both Windows 7 and Windows 8:</p>
<pre style="padding-left: 30px;">#if (_WIN32_WINNT &gt;= 0x0601 || (defined(NTDDI_VERSION) &amp;&amp; NTDDI_VERSION &gt;= NTDDI_WIN8))
 #define _WIN32_MSI   500
#elif (_WIN32_WINNT &gt;= 0x0601 || (defined(NTDDI_VERSION) &amp;&amp; NTDDI_VERSION &gt;= NTDDI_WIN7))
 #define _WIN32_MSI   500</pre>
<p style="padding-left: 30px;">The only addition is a new MSIARCHITECTUREFLAGS value in Msi.h:</p>
<pre style="padding-left: 30px;">typedef enum tagMSIARCHITECTUREFLAGS
{
 MSIARCHITECTUREFLAGS_X86   = 0x00000001L, // set if creating the script for i386 platform
 MSIARCHITECTUREFLAGS_IA64  = 0x00000002L, // set if creating the script for IA64 platform
 MSIARCHITECTUREFLAGS_AMD64 = 0x00000004L, // set if creating the script for AMD64 platform
 MSIARCHITECTUREFLAGS_ARM   = 0x00000008L //set if creating the script for ARM platform
}MSIARCHITECTUREFLAGS;</pre>
<p>and a new property name in MsiDefs.h:</p>
<pre style="padding-left: 30px;">#define IPROPNAME_ARM              TEXT("Arm")</pre>
<p>As we&#8217;ve known for a while that Windows 8 will support the ARM architecture, its presence isn&#8217;t too surprising.</p>
<p>There are no other new enumeration values. There are no new MSI API functions. While it&#8217;s possible there are, for example, new standard actions that wouldn&#8217;t have visible impact in the header files, I don&#8217;t find it too likely.</p>
<p>That yields two tiny bits of good news:</p>
<ol>
<li>Lack of visible interface changes probably means a lack of visible behavior changes. That likely means that your Retro-style installers will probably work without change, or at least as well as the classic Windows 8 desktop supports Retro-style apps.</li>
<li>WiX and Burn won&#8217;t need to do anything to support Windows 8. OK, that&#8217;s something only a few of us need to worry about&#8230;</li>
</ol>
<p>Coming up: More about Metro-style deployment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joyofsetup.com/2011/09/15/same-as-it-ever-was/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WiX and cabinetry</title>
		<link>http://www.joyofsetup.com/2011/06/21/wix-and-cabinetry/</link>
		<comments>http://www.joyofsetup.com/2011/06/21/wix-and-cabinetry/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 20:34:18 +0000</pubDate>
		<dc:creator>Bob Arnson</dc:creator>
				<category><![CDATA[WiX]]></category>
		<category><![CDATA[wix36]]></category>

		<guid isPermaLink="false">http://www.joyofsetup.com/?p=276</guid>
		<description><![CDATA[WiX v3.6 is focused on bring the Burn chainer into everyone&#8217;s hands. (You might be surprised how many products are already built with it.) That said, other features have been introduced in v3.6 and some of them are surprisingly useful. &#8230; <a href="http://www.joyofsetup.com/2011/06/21/wix-and-cabinetry/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>WiX v3.6 is focused on bring the Burn chainer into everyone&#8217;s hands. (You might be surprised how many products are already built with it.) That said, other features have been introduced in v3.6 and some of them are surprisingly useful. This post is about two of the more useful features, both dealing with cabinets.</p>
<h1>Media templates</h1>
<p>There are advantages to having multiple cabinets for your MSI packages, from <a href="http://www.joyofsetup.com/2008/03/29/wix-performance-tip-use-multiple-cabinets/">build-time performance</a> to more reliable downloading. Unfortunately, up to WiX v3.5, WiX required you to explicitly identify a set of files to go into a second (or third or fourth or&#8230;) cabinet using the DiskId attribute on the Component, File, Directory, or DirectoryRef elements.</p>
<p>WiX v3.6&#8242;s <a href="http://wix.sourceforge.net/manual-wix3/wix_xsd_mediatemplate.htm">MediaTemplate element</a> automatically creates cabinets up to an optionally-specified size. Files are assigned to &#8220;fill&#8221; each cabinet.</p>
<p style="padding-left: 30px;">Note: MediaTemplate replaces the <a href="http://wix.sourceforge.net/manual-wix3/wix_xsd_media.htm">Media element</a>; having both in your authoring results in a link-time error. You can still manually author DiskId attributes but they&#8217;re ignored in favor of MediaTemplate&#8217;s automatic cabinet making.</p>
<p>The simplest use of MediaTemplate is an empty element that takes all the defaults:</p>
<blockquote>
<pre>&lt;MediaTemplate /&gt;</pre>
</blockquote>
<p>MediaTemplate will generate as many cabinets as necessary for all the files in your package, up to a maximum of 999 cabinets. (If you have more than that, good luck!) Each cabinet will:</p>
<ul>
<li>Be named Prod###.cab</li>
<li>Be external to the package (not embedded)</li>
<li>Store up to 200MB of files before compression</li>
</ul>
<p>MediaTemplate shares some of Media&#8217;s attributes, to cover the same functionality:</p>
<ul>
<li><strong>CompressionLevel </strong>specifies the compression level to use in each cabinet.</li>
<li><strong>DiskPrompt </strong>specifies the disk name and VolumeLabel the volume label, if you&#8217;re dealing with multi-disk installs.</li>
<li><strong>EmbedCab </strong>lets you embed the cabinets in the .msi package. The default is to keep the cabinets external.</li>
</ul>
<p>Attributes specific to MediaTemplate control how the cabinets are generated and filled:</p>
<ul>
<li><strong>CabinetTemplate </strong>names each cabinet. The default is &#8220;Prod{0}.cab&#8221; which yields cabinet names of Prod1.cab, Prod2.cab, and so forth. The &#8220;{0}&#8221; is replaced with cabinet numbers, from 1 to 999. MSI says that cabinets have to follow the rules for 8.3 short filenames, so you can have up to five whole characters to distinguish your cabinet names.</li>
<li><strong>MaximumUncompressedMediaSize</strong>, as its impressively-long name indicates, specifies the maximum size of the files in each cabinet, in megabytes. The default size is 200MB.MediaTemplate counts actual file sizes—without compression—as it adds files to cabinets. Doing so is more predictable than trying to add files to cabinets as part of the cabinet-creation process; WiX can&#8217;t accurately predict how much a particular file will take up once it&#8217;s compressed so adding a file to a cabinet might make it larger than the maximum size. Using the uncompressed file size means that compressed cabinets will generally be smaller than the maximum size. On the flip side, any individual files that are larger than the maximum size go into a single-file cabinet, so it&#8217;s possible that such cabinets will be larger than the maximum size.</li>
</ul>
<p>You can override MaximumUncompressedMediaSize by specifying the size in megabytes in the WIX_MUMS environment variable. You wouldn&#8217;t typically do so but using an environment variable makes it easy to tweak the cabinet size on a developer box, say to create more, smaller cabinets to take advantage of WiX&#8217;s multithreaded cabinet creation to speed up builds on a developer box with many cores.</p>
<h1>Overriding compression level</h1>
<p>Speaking of speeding up developer builds&#8230;Back in 2008, I added the <a href="http://www.joyofsetup.com/2008/01/28/new-wix-feature-defaultcompressionlevel/">default compression level feature</a> to let you specify compression level at the project level instead of just in WiX authoring. That feature let you change compression level without changing authoring but you still had to change your .wixproj or other build script.</p>
<p>Now in WiX v3.6, you can override the compression level by specifying the WIX_COMPRESSION_LEVEL environment variable with the same values you can specify in, for example, the MediaTemplate/@CompressionLevel attribute. WIX_COMPRESSION_LEVEL overrides the default compression level specified in .wixproj MSBuild projects and explicitly authored @CompressionLevel attribute values.</p>
<p>There&#8217;s one simple use case: WIX_COMPRESSION_LEVEL lets developers specify &#8220;none&#8221; or &#8220;low&#8221; compression to avoid pegging all their CPU cores doing &#8220;mszip&#8221; or &#8220;high&#8221; compression that they absolutely don&#8217;t care about.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joyofsetup.com/2011/06/21/wix-and-cabinetry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Goodbye and hello again</title>
		<link>http://www.joyofsetup.com/2011/03/26/goodbye-and-hello-again/</link>
		<comments>http://www.joyofsetup.com/2011/03/26/goodbye-and-hello-again/#comments</comments>
		<pubDate>Sat, 26 Mar 2011 20:12:23 +0000</pubDate>
		<dc:creator>Bob Arnson</dc:creator>
				<category><![CDATA[Etc]]></category>
		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://www.joyofsetup.com/?p=263</guid>
		<description><![CDATA[This week was my last at Microsoft. After six and a half years, I decided it was time to resign from the collective and seek out new opportunities. What opportunities? Well, I have a few things in the works but &#8230; <a href="http://www.joyofsetup.com/2011/03/26/goodbye-and-hello-again/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This week was my last at Microsoft. After six and a half years, I decided it was time to resign from the collective and seek out new opportunities.</p>
<p>What opportunities? Well, I have a few things in the works but for now here&#8217;s a vague Q&amp;A using an <a href="http://en.wikipedia.org/wiki/Magic_8-Ball">icosahedral decision-making device</a>:</p>
<p><strong>Q</strong> Are you resigning from the WiX community as well?<br />
<strong>A</strong> My sources say no.</p>
<p><strong>Q</strong> Are you going to work for a Microsoft competitor?<br />
<strong>A</strong> Don&#8217;t count on it.</p>
<p><strong>Q</strong> Will you be available for consulting?<br />
<strong>A</strong> You may rely on it.</p>
<p><strong>Q</strong> Are you going to write a WiX book?<br />
<strong>A</strong> Signs point to yes.</p>
<p><strong>Q</strong> More than one WiX book?<br />
<strong>A</strong> Outlook good.</p>
<p><strong>Q</strong> Will you develop additional tools, custom actions, or extensions for WiX?<br />
<strong>A</strong> Most likely.</p>
<p><strong>Q</strong> Will you contribute them to the WiX project?<br />
<strong>A</strong> Concentrate and ask again.</p>
<p><strong>Q</strong> Will they all be available as open-source?<br />
<strong>A</strong> Ask again later.</p>
<p>Stay tuned for details.</p>
<p>In closing, I&#8217;d like to thank <a href="http://robmensching.com/blog/">Rob</a> for creating WiX, doing the work to make it Microsoft&#8217;s first open-source project, and giving me an opportunity to contribute these past six-plus years. It&#8217;s safe to say it kept me moderately sane on more than one occasion. I got to know the original batch of core WiX developers and help the &#8220;next generation&#8221; come in. Along the way, I learned a lot, mostly (but not exclusively) about development, WiX, and MSI.</p>
<p>WiX was first released publicly a few months before I joined Microsoft and I was immediately intrigued. Then I joined Microsoft and helped ship WiX v2.0, v3.0, and v3.5. Now I&#8217;ve come back full circle, on the outside eagerly awaiting v3.6 and the opportunities it brings.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joyofsetup.com/2011/03/26/goodbye-and-hello-again/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WiX v3.5 is released</title>
		<link>http://www.joyofsetup.com/2011/01/31/wix-v3-5-is-released/</link>
		<comments>http://www.joyofsetup.com/2011/01/31/wix-v3-5-is-released/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 15:07:07 +0000</pubDate>
		<dc:creator>Bob Arnson</dc:creator>
				<category><![CDATA[WiX]]></category>

		<guid isPermaLink="false">http://www.joyofsetup.com/?p=252</guid>
		<description><![CDATA[As Rob notes, WiX v3.5 has been released. You can download it from WiX&#8217;s new home on Codeplex: http://wix.codeplex.com/releases/view/60102. The final build number is 3.5.2519.0. On to v3.6!]]></description>
			<content:encoded><![CDATA[<p>As <a href="http://robmensching.com/blog/posts/2011/1/31/WiX-v3.5-released">Rob notes</a>, WiX v3.5 has been released. You can download it from WiX&#8217;s new home on Codeplex: <a href="http://wix.codeplex.com/releases/view/60102">http://wix.codeplex.com/releases/view/60102</a>. The final build number is 3.5.2519.0.</p>
<p>On to v3.6!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joyofsetup.com/2011/01/31/wix-v3-5-is-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tactical directory nukes</title>
		<link>http://www.joyofsetup.com/2011/01/21/tactical-directory-nukes/</link>
		<comments>http://www.joyofsetup.com/2011/01/21/tactical-directory-nukes/#comments</comments>
		<pubDate>Fri, 21 Jan 2011 20:23:37 +0000</pubDate>
		<dc:creator>Bob Arnson</dc:creator>
				<category><![CDATA[WiX]]></category>

		<guid isPermaLink="false">http://www.joyofsetup.com/?p=249</guid>
		<description><![CDATA[Though I&#8217;ve commented before about unnecessarily &#8220;nuking&#8221; whole registry keys, sometimes it&#8217;s what&#8217;s needed. The same applies to the file system: Sometimes apps create files and directories that weren&#8217;t part of the original installation. MSI makes it easy to remove &#8230; <a href="http://www.joyofsetup.com/2011/01/21/tactical-directory-nukes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Though I&#8217;ve <a href="http://www.joyofsetup.com/2010/05/14/working-hard-or-hardly-working/">commented before</a> about unnecessarily &#8220;nuking&#8221; whole registry keys, sometimes it&#8217;s what&#8217;s needed. The same applies to the file system: Sometimes apps create files and directories that weren&#8217;t part of the original installation. MSI makes it easy to remove files, including via wildcard. Individual directories can also be removed, but MSI doesn&#8217;t have support for wildcard directories or recursive directory trees. It&#8217;s easy to delete trees via custom action but tougher to do so while also handling rollback.</p>
<p>Thanks to Rob&#8217;s work on <a href="http://wixcontrib.codeplex.com/">wixcontrib</a>, the code to handling directory nuking was available. I took it with some improvements into WixUtilExtension in WiX v3.6 and it&#8217;s available with today&#8217;s build: <a href="http://wix.sourceforge.net/releases/3.6.1321.0/">3.6.1321.0</a>.</p>
<p>Use the RemoveFolderEx element as a child of a Component:</p>
<blockquote><p>&lt;Component &#8230;&gt;<br />
&lt;util:RemoveFolderEx On=&#8221;uninstall&#8221; Property=&#8221;MyDirtyDirectory&#8221; /&gt;<br />
&lt;/Component&gt;</p></blockquote>
<p>There is one annoying restriction: RemoveFolderEx cannot be used directly on a directory defined in your installer. It&#8217;s an annoying chicken/egg problem. As adding directories and files to be deleted affects MSI&#8217;s <a href="http://msdn.microsoft.com/en-us/library/aa368593%28VS.85%29.aspx">file costing</a>, RemoveFolderEx has to do its thing before costing. Unfortunately, MSI doesn&#8217;t set up properties for target directories until <em>after</em> costing is complete.</p>
<p>According to a poll both unscientific and informal, the most common use  case is that the directory path is already written to a registry value anyway, for use by the installed application. See Rob&#8217;s blog post <a href="http://robmensching.com/blog/posts/2010/5/2/The-WiX-toolsets-Remember-Property-pattern">The WiX  toolset&#8217;s &#8220;Remember Property&#8221; pattern</a> for an example. As the AppSearch standard action sets the property well before costing begins, RemoveFolderEx works.</p>
<p>Quick implementation note: RemoveFolderEx works by recursing from the specified directory, adding temporary rows to the RemoveFile table for each subdirectory, one for the directory and one for the files in each directory. This is the pattern I described as <a href="http://www.joyofsetup.com/2007/07/01/semi-custom-actions/">&#8220;semi-custom actions&#8221;</a> way back in 2007.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joyofsetup.com/2011/01/21/tactical-directory-nukes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WiX v3.5 escrow build released, redux</title>
		<link>http://www.joyofsetup.com/2010/12/30/wix-v3-5-escrow-build-released-redux/</link>
		<comments>http://www.joyofsetup.com/2010/12/30/wix-v3-5-escrow-build-released-redux/#comments</comments>
		<pubDate>Thu, 30 Dec 2010 18:27:22 +0000</pubDate>
		<dc:creator>Bob Arnson</dc:creator>
				<category><![CDATA[WiX]]></category>

		<guid isPermaLink="false">http://www.joyofsetup.com/?p=239</guid>
		<description><![CDATA[A couple of important but low-risk bugs cropped up since the original WiX v3.5 escrow build was released. So, one last escrow build of WiX v3.5 in 2010: v3.5.2430.0. A quirk of publishing the build omitted the changes since the &#8230; <a href="http://www.joyofsetup.com/2010/12/30/wix-v3-5-escrow-build-released-redux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A couple of important but low-risk bugs cropped up since the original <a href="http://www.joyofsetup.com/2010/11/25/wix-v3-5-escrow-build-released/">WiX v3.5 escrow build</a> was released. So, one last escrow build of WiX v3.5 in 2010: <a href="http://wix.sourceforge.net/releases/3.5.2430.0/">v3.5.2430.0</a>. A quirk of publishing the build omitted the changes since the <a href="http://wix.sourceforge.net/releases/3.5.2415.0/">prior build</a> in the <a href="http://wix.sourceforge.net/releases/wix3.5.feed">RSS feed</a>:</p>
<ul>
<li>RobMen: SFBUG:3139522 &#8211; add MakeSfxCA.exe.config to binaries.zip file.</li>
<li>BobArnso: SFFeature:3130590 &#8211; Update DifxApp DLLs in DifxApp .wixlibs to version shipped in DDK 7600.16385.1.</li>
<li>EricStJ: SFBUG:3147256 Votive 2005/2008 corrupts binary files in templates</li>
</ul>
<p><a href="http://wix.sourceforge.net/releases/3.5.2430.0/">Download</a>, install, and <a href="http://wix.sourceforge.net/mailinglists.html#wix-users">let us know</a> how if it&#8217;s ready to ship!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joyofsetup.com/2010/12/30/wix-v3-5-escrow-build-released-redux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.299 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-05-17 09:32:09 -->
<!-- Compression = gzip -->
