<?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; Checking for a Prerequisite But Not Installing It</title>
	<atom:link href="http://www.installationdeveloper.com/352/checking-for-a-prerequisite-but-not-installing-it/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>Checking for a Prerequisite But Not Installing It</title>
		<link>http://www.installationdeveloper.com/352/checking-for-a-prerequisite-but-not-installing-it/</link>
		<comments>http://www.installationdeveloper.com/352/checking-for-a-prerequisite-but-not-installing-it/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 19:01:24 +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=352</guid>
		<description><![CDATA[
I am on an interesting project right now where I have to make a&#160;number of changes to a large existing installer.&#160; The installer is complicated so this is&#160;taking some analysis.&#160; One of the requirements is that they do not want to blindly install prerequisites on a user&#39;s system anymore.&#160; Let me clarify.


This client&#39;s product is [...]]]></description>
			<content:encoded><![CDATA[<p>
I am on an interesting project right now where I have to make a&nbsp;number of changes to a large existing installer.&nbsp; The installer is complicated so this is&nbsp;taking some analysis.&nbsp; One of the requirements is that they do not want to blindly install prerequisites on a user&#39;s system anymore.&nbsp; Let me clarify.
</p>
<p>
This client&#39;s product is generally used by people on an enterprise system, meaning a corporate intranet.&nbsp; The client told me that their&nbsp;customers, and especially administrators in their customer&#39;s companies, were not happy about&nbsp;installing prerequisites on a network system.&nbsp; The client wants to now&nbsp;check if the prerequisite is present, and if not present, display a message alerting the customer to that fact, but&nbsp;not actually installing the prerequisite on their system.&nbsp; So, what&#39;s the easiest way to do this?
</p>
<p>
There are two methods to do this:
</p>
<ol>
<li>
<div>
	Go to the <strong>Redistributables</strong> view of the <strong>IDE</strong>, find the prerequisite you need to check for, but not install, right-click on it, and select <strong>Edit Prerequisite</strong>.&nbsp; Then go to the <strong>Conditions</strong> tab.&nbsp; There you will find a list of conditions that are checked for.&nbsp; The conditions determine whether the prerequisite needs to be installed or not.&nbsp; So, you can just copy these conditions and write an <strong>InstallScript</strong> function to perform the checks.&nbsp; If you are in a <strong>Basic MSI</strong> project, you would need to write an <strong>InstallScript Custom Action</strong>.&nbsp; The only problem with this is that not all prerequisites can be edited.&nbsp; Just go randomly select any prerequisite, right-click it&nbsp;and see if the <strong>Edit Prerequisite</strong> choice is enabled.&nbsp; If not, you have to try the next tactic.
	</div>
</li>
<li>
<div>
	Go to <strong>Microsoft</strong>, more specifically <strong>MSDN</strong>, and search for &quot;How to detect if XXX is currently installed&quot;, or something similar.&nbsp; <strong>Microsoft</strong> tends to have a lot of articles on how to check if one of their technologies is present.&nbsp; You just have to sift through everything on their website to find it.
	</div>
</li>
</ol>
<p>
These are the methods I use to accomplish checking for a prerequisite.&nbsp; I hope you get some use out of them.
</p>
<p>
&nbsp;</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%2F352%2Fchecking-for-a-prerequisite-but-not-installing-it%2F&amp;title=Checking%20for%20a%20Prerequisite%20But%20Not%20Installing%20It&amp;bodytext=%0D%0AI%20am%20on%20an%20interesting%20project%20right%20now%20where%20I%20have%20to%20make%20a%26nbsp%3Bnumber%20of%20changes%20to%20a%20large%20existing%20installer.%26nbsp%3B%20The%20installer%20is%20complicated%20so%20this%20is%26nbsp%3Btaking%20some%20analysis.%26nbsp%3B%20One%20of%20the%20requirements%20is%20that%20they%20do%20not%20want%20to" 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%2F352%2Fchecking-for-a-prerequisite-but-not-installing-it%2F&amp;title=Checking%20for%20a%20Prerequisite%20But%20Not%20Installing%20It&amp;notes=%0D%0AI%20am%20on%20an%20interesting%20project%20right%20now%20where%20I%20have%20to%20make%20a%26nbsp%3Bnumber%20of%20changes%20to%20a%20large%20existing%20installer.%26nbsp%3B%20The%20installer%20is%20complicated%20so%20this%20is%26nbsp%3Btaking%20some%20analysis.%26nbsp%3B%20One%20of%20the%20requirements%20is%20that%20they%20do%20not%20want%20to" 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%2F352%2Fchecking-for-a-prerequisite-but-not-installing-it%2F&amp;t=Checking%20for%20a%20Prerequisite%20But%20Not%20Installing%20It" 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%2F352%2Fchecking-for-a-prerequisite-but-not-installing-it%2F&amp;h=Checking%20for%20a%20Prerequisite%20But%20Not%20Installing%20It" 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%2F352%2Fchecking-for-a-prerequisite-but-not-installing-it%2F&amp;title=Checking%20for%20a%20Prerequisite%20But%20Not%20Installing%20It" 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%2F352%2Fchecking-for-a-prerequisite-but-not-installing-it%2F&amp;title=Checking%20for%20a%20Prerequisite%20But%20Not%20Installing%20It" 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%2F352%2Fchecking-for-a-prerequisite-but-not-installing-it%2F&amp;title=Checking%20for%20a%20Prerequisite%20But%20Not%20Installing%20It&amp;annotation=%0D%0AI%20am%20on%20an%20interesting%20project%20right%20now%20where%20I%20have%20to%20make%20a%26nbsp%3Bnumber%20of%20changes%20to%20a%20large%20existing%20installer.%26nbsp%3B%20The%20installer%20is%20complicated%20so%20this%20is%26nbsp%3Btaking%20some%20analysis.%26nbsp%3B%20One%20of%20the%20requirements%20is%20that%20they%20do%20not%20want%20to" 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%2F352%2Fchecking-for-a-prerequisite-but-not-installing-it%2F&amp;submitHeadline=Checking%20for%20a%20Prerequisite%20But%20Not%20Installing%20It&amp;submitSummary=%0D%0AI%20am%20on%20an%20interesting%20project%20right%20now%20where%20I%20have%20to%20make%20a%26nbsp%3Bnumber%20of%20changes%20to%20a%20large%20existing%20installer.%26nbsp%3B%20The%20installer%20is%20complicated%20so%20this%20is%26nbsp%3Btaking%20some%20analysis.%26nbsp%3B%20One%20of%20the%20requirements%20is%20that%20they%20do%20not%20want%20to&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=Checking%20for%20a%20Prerequisite%20But%20Not%20Installing%20It%20-%20http%3A%2F%2Fwww.installationdeveloper.com%2F352%2Fchecking-for-a-prerequisite-but-not-installing-it%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%2F352%2Fchecking-for-a-prerequisite-but-not-installing-it%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%2F352%2Fchecking-for-a-prerequisite-but-not-installing-it%2F&amp;title=Checking%20for%20a%20Prerequisite%20But%20Not%20Installing%20It" 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%2F352%2Fchecking-for-a-prerequisite-but-not-installing-it%2F&amp;title=Checking%20for%20a%20Prerequisite%20But%20Not%20Installing%20It&amp;source=Installation+Developer+InstallShield+Training+-+InstallShield+Tutorials&amp;summary=%0D%0AI%20am%20on%20an%20interesting%20project%20right%20now%20where%20I%20have%20to%20make%20a%26nbsp%3Bnumber%20of%20changes%20to%20a%20large%20existing%20installer.%26nbsp%3B%20The%20installer%20is%20complicated%20so%20this%20is%26nbsp%3Btaking%20some%20analysis.%26nbsp%3B%20One%20of%20the%20requirements%20is%20that%20they%20do%20not%20want%20to" 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%2F352%2Fchecking-for-a-prerequisite-but-not-installing-it%2F&amp;t=Checking%20for%20a%20Prerequisite%20But%20Not%20Installing%20It" 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/352/checking-for-a-prerequisite-but-not-installing-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
