<?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>Installation Developer &#187; How to Create an Install Condition</title>
	<atom:link href="http://www.installationdeveloper.com/320/how-to-create-an-install-condition/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.installationdeveloper.com</link>
	<description>InstallShield Training - InstallShield Tutorials</description>
	<lastBuildDate>Tue, 27 Jul 2010 14:57:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Create an Install Condition</title>
		<link>http://www.installationdeveloper.com/320/how-to-create-an-install-condition/</link>
		<comments>http://www.installationdeveloper.com/320/how-to-create-an-install-condition/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 23:48:51 +0000</pubDate>
		<dc:creator>Rod_Maupin</dc:creator>
				<category><![CDATA[InstallShield Training]]></category>
		<category><![CDATA[installshield class]]></category>
		<category><![CDATA[installshield classes]]></category>
		<category><![CDATA[installshield course]]></category>
		<category><![CDATA[installshield courses]]></category>
		<category><![CDATA[installshield programmer]]></category>
		<category><![CDATA[installshield tutorial]]></category>
		<category><![CDATA[installshield tutorials]]></category>

		<guid isPermaLink="false">http://www.installationdeveloper.com/?p=320</guid>
		<description><![CDATA[
A customer asked me an interesting question recently.&#160; How to create an install condition in a Basic MSI project that is based on whether or not SharePoint is installed on the user&#39;s system.&#160; A handy way to do this is to use System Search Wizard, so we will look at that.


System Search is under the [...]]]></description>
			<content:encoded><![CDATA[<p>
A customer asked me an interesting question recently.&nbsp; How to create an install condition in a <strong>Basic MSI</strong> project that is based on whether or not <strong>SharePoint</strong> is installed on the user&#39;s system.&nbsp; A handy way to do this is to use <strong>System Search Wizard</strong>, so we will look at that.
</p>
<p>
System Search is under the <strong>Behavior and Logic</strong> section of the <strong>IDE</strong>.&nbsp; Click on <strong>System Search</strong>, right-click in the right pane and select Add.&nbsp; <strong>System Search Wizard</strong> will open, just click Next and you will be on the &quot;What do you want to find?&quot; page.&nbsp; Select &quot;Registry entry&quot; from the list and click Next.
</p>
<p>
On the &quot;How do you want to look for it?&quot; page, select HKEY_LOCAL_MACHINE for the <strong>Registry Root</strong>, enter Microsoft\Shared Tools\Web Server Extensions\12.0 for the <strong>Registry Key</strong> and enter Version for the <strong>Registry Value</strong>.&nbsp; then click Next.
</p>
<p>
On the &quot;What do you want to do with the value?&quot; page, enter WSSVERSION for the property name, and click &quot;Store the value in the property and use the property in an Install Condition&quot;.&nbsp; Then click Finish.
</p>
<p>
At this point, <strong>Condition Builder</strong> will open.&nbsp; You see, <strong>System Search</strong> was used to query the <strong>Registry</strong> entry and put the value in the property, <strong>WSSVERSION</strong>.&nbsp; Now, <strong>Condition Builder</strong> will be used to create an <strong>Install Con</strong>dition based on the property.
</p>
<p>
For the Condition, enter &quot;WSSVERSION &lt;= &quot;12.0.0.0000&quot;.&nbsp; For the Message enter, &quot;The proper version of SharePoint is not installed on this machine.&nbsp; The installation program can not continue until the proper version is present&quot;.&nbsp; Then click OK.
</p>
<p>
Next, rebuild the installer and test it out.&nbsp; The installation will only continue if a <strong>Sharepoint</strong> version greater than 12.0.0.0000 is installed on the machine.&nbsp; Otherwise, a message will be displayed telling the user that it is required, and the installation will end.
</p>
<p>
There is one more detail&nbsp;worth mentioning.&nbsp; When you create the <strong>Install Condition</strong>, an entry is added to the <strong>LaunchCondition </strong>table in the <strong>Direct Editor</strong> view.&nbsp; So, if you do this procedure a number of times for the same installation, and each time changing the version condition until you get it right, there will be an entry in the LaunchCondition table for each try that you did.&nbsp; For example, if you go to the <strong>System Search</strong> view, click on the row for the registry search you have been working with, and then click Delete, the entry will be deleted from the System Search view, but the <strong>Install Condition</strong> will still be in the <strong>LaunchCondition </strong>table.&nbsp; If it takes you three tries for you to get it right, there will be three entries in the <strong>LaunchCondition</strong> table.&nbsp; And when you test, who knows what will happen because all these conditions will need to be satisfied.&nbsp; So when you delete the row in the <strong>System Search</strong> view, go to <strong>LaunchCondition</strong> and delete the corresponding row.&nbsp; It will save you some aggravation.
</p>
<p>
That&#39;s all there is to creating an <strong>Install Condition</strong> using <strong>System Search</strong> and <strong>Condition Builder</strong>.&nbsp; You can adapt this to any example you like.
</p>
<p>
You may be wondering why&nbsp;my customer didn&#39;t just add a <strong>Sharepoint</strong> prerequisite to the installation.&nbsp; It&#39;s because the requirement he was given was not to install <strong>Sharepoint</strong>, just&nbsp; to check that&nbsp;the proper version was already installed, and continue the installation only if it was there.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.installationdeveloper.com%2F320%2Fhow-to-create-an-install-condition%2F&amp;title=How%20to%20Create%20an%20Install%20Condition&amp;bodytext=%0D%0AA%20customer%20asked%20me%20an%20interesting%20question%20recently.%26nbsp%3B%20How%20to%20create%20an%20install%20condition%20in%20a%20Basic%20MSI%20project%20that%20is%20based%20on%20whether%20or%20not%20SharePoint%20is%20installed%20on%20the%20user%26%2339%3Bs%20system.%26nbsp%3B%20A%20handy%20way%20to%20do%20this%20is%20to%20use%20System%20Se" title="Digg"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.installationdeveloper.com%2F320%2Fhow-to-create-an-install-condition%2F&amp;title=How%20to%20Create%20an%20Install%20Condition&amp;notes=%0D%0AA%20customer%20asked%20me%20an%20interesting%20question%20recently.%26nbsp%3B%20How%20to%20create%20an%20install%20condition%20in%20a%20Basic%20MSI%20project%20that%20is%20based%20on%20whether%20or%20not%20SharePoint%20is%20installed%20on%20the%20user%26%2339%3Bs%20system.%26nbsp%3B%20A%20handy%20way%20to%20do%20this%20is%20to%20use%20System%20Se" title="del.icio.us"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.installationdeveloper.com%2F320%2Fhow-to-create-an-install-condition%2F&amp;t=How%20to%20Create%20an%20Install%20Condition" title="Facebook"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.installationdeveloper.com%2F320%2Fhow-to-create-an-install-condition%2F&amp;h=How%20to%20Create%20an%20Install%20Condition" title="NewsVine"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.installationdeveloper.com%2F320%2Fhow-to-create-an-install-condition%2F&amp;title=How%20to%20Create%20an%20Install%20Condition" title="Reddit"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.installationdeveloper.com%2F320%2Fhow-to-create-an-install-condition%2F&amp;title=How%20to%20Create%20an%20Install%20Condition" title="StumbleUpon"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.installationdeveloper.com%2F320%2Fhow-to-create-an-install-condition%2F&amp;title=How%20to%20Create%20an%20Install%20Condition&amp;annotation=%0D%0AA%20customer%20asked%20me%20an%20interesting%20question%20recently.%26nbsp%3B%20How%20to%20create%20an%20install%20condition%20in%20a%20Basic%20MSI%20project%20that%20is%20based%20on%20whether%20or%20not%20SharePoint%20is%20installed%20on%20the%20user%26%2339%3Bs%20system.%26nbsp%3B%20A%20handy%20way%20to%20do%20this%20is%20to%20use%20System%20Se" title="Google Bookmarks"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.installationdeveloper.com%2F320%2Fhow-to-create-an-install-condition%2F&amp;submitHeadline=How%20to%20Create%20an%20Install%20Condition&amp;submitSummary=%0D%0AA%20customer%20asked%20me%20an%20interesting%20question%20recently.%26nbsp%3B%20How%20to%20create%20an%20install%20condition%20in%20a%20Basic%20MSI%20project%20that%20is%20based%20on%20whether%20or%20not%20SharePoint%20is%20installed%20on%20the%20user%26%2339%3Bs%20system.%26nbsp%3B%20A%20handy%20way%20to%20do%20this%20is%20to%20use%20System%20Se&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=How%20to%20Create%20an%20Install%20Condition%20-%20http%3A%2F%2Fwww.installationdeveloper.com%2F320%2Fhow-to-create-an-install-condition%2F" title="Twitter"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.installationdeveloper.com%2F320%2Fhow-to-create-an-install-condition%2F" title="Technorati"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.installationdeveloper.com%2F320%2Fhow-to-create-an-install-condition%2F&amp;title=How%20to%20Create%20an%20Install%20Condition" title="Live"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.installationdeveloper.com%2F320%2Fhow-to-create-an-install-condition%2F&amp;title=How%20to%20Create%20an%20Install%20Condition&amp;source=Installation+Developer+InstallShield+Training+-+InstallShield+Tutorials&amp;summary=%0D%0AA%20customer%20asked%20me%20an%20interesting%20question%20recently.%26nbsp%3B%20How%20to%20create%20an%20install%20condition%20in%20a%20Basic%20MSI%20project%20that%20is%20based%20on%20whether%20or%20not%20SharePoint%20is%20installed%20on%20the%20user%26%2339%3Bs%20system.%26nbsp%3B%20A%20handy%20way%20to%20do%20this%20is%20to%20use%20System%20Se" title="LinkedIn"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.installationdeveloper.com%2F320%2Fhow-to-create-an-install-condition%2F&amp;t=How%20to%20Create%20an%20Install%20Condition" title="MySpace"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.installationdeveloper.com/320/how-to-create-an-install-condition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
