<?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>christomlinson.name &#187; installer</title>
	<atom:link href="http://christomlinson.name/tags/installer/feed/" rel="self" type="application/rss+xml" />
	<link>http://christomlinson.name</link>
	<description></description>
	<lastBuildDate>Tue, 01 May 2012 21:12:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Visual Studio 2008 installer project tips</title>
		<link>http://christomlinson.name/articles/visual-studio-2008-installer-project-tips/</link>
		<comments>http://christomlinson.name/articles/visual-studio-2008-installer-project-tips/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 22:35:54 +0000</pubDate>
		<dc:creator>Luckyrat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[chris]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[installer]]></category>
		<category><![CDATA[tomlinson]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://christomlinson.name/?p=29</guid>
		<description><![CDATA[No doubt there are entire teams of people dedicated to understanding the Microsoft Windows installer system (.msi files) but for me it is just a means to an end. I didn&#8217;t find it a particularly accessible technology so from the &#8230; <a href="http://christomlinson.name/articles/visual-studio-2008-installer-project-tips/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>No doubt there are entire teams of people dedicated to understanding the  Microsoft Windows installer system (.msi files) but for me it is just a  means to an end. I didn&#8217;t find it a particularly accessible technology  so from the point of view of someone interested in deploying the output  from a Visual Studio 2008 project onto end user systems, here are a  couple of the gotchas I came across.</p>
<p>First, there is a registry key on the end user system which should  record the location into which the installer deployed the output of your  project (maybe the end user choose this through an install wizard). I  mistakenly assumed that Microsoft&#8217;s Visual Studio installer project  would automatically handle the basics like this, but no. The answer was  in this recent blog post: <a href="http://www.hardcodet.net/2008/12/arpinstalllocation-for-visual-studio-setups">Using  a Post-Build Script to set the InstallLocation property in VS Setup  Projects</a> &#8211; the author includes a handy script which you can just  drop into your project to fix this problem.</p>
<p>The second problem was an error message I received when installing my  project:</p>
<p><em>Error 1001. Unable to get installer types in the [...] assembly.  Unable to load one or more of the requested types. Retrieve the  LoaderExceptions property for more information.</em></p>
<p>Although missing DLL dependencies and pre-requisites are already  published known causes for this problem, that didn&#8217;t quite reveal the  true cause in my case. The reason I experienced this error is because:</p>
<p>1) I had set up a custom install action in my main project assembly (to  add the install folder to the system path)<br />
2) I had redirected the primary project output to an alternative folder  (rather than the default &#8220;Application folder&#8221;)</p>
<p>So the quick fix was to add a second project output to the installer so  it now puts the DLL into my alternative folder as well as the main  output folder (along with all its other DLL dependencies). Hopefully  there is a neater way to do this which doesn&#8217;t clutter the end user&#8217;s  system with two copies of the same file but I&#8217;m in no rush to find it  because I just want to get on with some real development work rather  than trying to understand VS2008 installer project limitations.</p>
]]></content:encoded>
			<wfw:commentRss>http://christomlinson.name/articles/visual-studio-2008-installer-project-tips/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

