<?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; Running an Application from an InstallScript Installation</title>
	<atom:link href="http://www.installationdeveloper.com/251/running-an-application-from-an-installscript-installation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.installationdeveloper.com</link>
	<description>InstallShield Training - InstallShield Tutorials</description>
	<lastBuildDate>Thu, 26 Jan 2012 22:12:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Running an Application from an InstallScript Installation</title>
		<link>http://www.installationdeveloper.com/251/running-an-application-from-an-installscript-installation/</link>
		<comments>http://www.installationdeveloper.com/251/running-an-application-from-an-installscript-installation/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 23:51:26 +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=251</guid>
		<description><![CDATA[This topic may seem simple but the question arises&#160;frequently enough.&#160; How do you run an external program from within an InstallScript installation? In an InstallScript installation,&#160;you can do it with two functions, LaunchApp and LaunchAppAndWait.&#160;&#160;LaunchApp calls LaunchAppAndWait, and LaunchAppAndWait calls LaunchApplication. LaunchApp takes two parameters: &#160;&#160;&#160;&#160; APPLICATION: the application to run &#160;&#160;&#160;&#160; CMD_LINE: The path [...]]]></description>
			<content:encoded><![CDATA[<p>
This topic may seem simple but the question arises&nbsp;frequently enough.&nbsp; How do you run an external program from within an InstallScript installation?
</p>
<p>
In an InstallScript installation,&nbsp;you can do it with two functions, LaunchApp and LaunchAppAndWait.&nbsp;&nbsp;LaunchApp calls LaunchAppAndWait, and LaunchAppAndWait calls LaunchApplication.
</p>
<p>
LaunchApp takes two parameters:
</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp; APPLICATION: the application to run
</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp; CMD_LINE: The path to the application
</p>
<p>
Here is an example using&nbsp;LaunchApp:
</p>
<p>
if (LaunchApp(APPLICATION, CMD_LINE) &lt; 0) then
</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp; MessageBox(&quot;Unable to launch &quot; + APPLICATION + &quot;.&quot;,SEVERE);
</p>
<p>
endif;
</p>
<p>
LaunchAppAndWait takes three parameters:
</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp; LaunchAppAndWait(APPLICATION,CMD_LINE,OPTIONS);
</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp; APPLICATION&nbsp;- the application to run
</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp; CMD_LINE &#8211; the path to the application
</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp; OPTIONS &#8211; the options for running the application.&nbsp; The various options allow you to wait while the application is ran, to not wait while the application is ran, whether to show an hourglass cursor, whether the application window is hidden, minimized, or maximized.&nbsp; There are other useful options.&nbsp; Consult the InstallShield Help for the LaunchApplication function to see&nbsp;the entire list&nbsp;of options.
</p>
<p>
Here is an example using LaunchAppAndWait:
</p>
<p>
if (LaunchAppAndWait(APPLICATION,&quot;&quot;,nOptions) &lt; 0) then
</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp; MessageBox(&quot;Unable to launch &quot; + APPLICATION + &quot;.&quot;,SEVERE);
</p>
<p>
endif;
</p>
<p>
For a full explanation of these functions in their entirety, consult the InstallShield Help.</p>
<!-- Start Sociable --><div class="sociable"><div class="sociable_tagline"><a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='color:#333333;text-decoration:none'>Be Sociable, Share!</a></div><ul class='clearfix'><li><a title="Twitter" class="option1_32" style="background-position:-288px -32px" rel="nofollow" target="_blank" href="http://twitter.com/intent/tweet?text=Running%20an%20Application%20from%20an%20InstallScript%20Installation%20-%20http%3A%2F%2Fwww.installationdeveloper.com%2F251%2Frunning-an-application-from-an-installscript-installation%2F%20(via%20@sociablesite)"></a></li><li><a title="Facebook" class="option1_32" style="background-position:-96px 0px" rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.installationdeveloper.com%2F251%2Frunning-an-application-from-an-installscript-installation%2F&amp;t=Running%20an%20Application%20from%20an%20InstallScript%20Installation"></a></li><li><a title="email" class="option1_32" style="background-position:-160px 0px" rel="nofollow" target="_blank" href="https://mail.google.com/mail/?view=cm&fs=1&to&su=Running%20an%20Application%20from%20an%20InstallScript%20Installation&body=http%3A%2F%2Fwww.installationdeveloper.com%2F251%2Frunning-an-application-from-an-installscript-installation%2F&ui=2&tf=1&shva=1"></a></li><li><a class="option1_32" style="cursor:pointer;background-position:-128px 0px" rel="nofollow" title="Add to favorites - doesn't work in Chrome"  onClick="javascript:AddToFavorites();"></a></li><li><a title="StumbleUpon" class="option1_32" style="background-position:-224px -32px" rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.installationdeveloper.com%2F251%2Frunning-an-application-from-an-installscript-installation%2F&title=Running%20an%20Application%20from%20an%20InstallScript%20Installation"></a></li><li><a title="Delicious" class="option1_32" style="background-position:-32px 0px" rel="nofollow" target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.installationdeveloper.com%2F251%2Frunning-an-application-from-an-installscript-installation%2F&amp;title=Running%20an%20Application%20from%20an%20InstallScript%20Installation&amp;notes=%0D%0AThis%20topic%20may%20seem%20simple%20but%20the%20question%20arises%26nbsp%3Bfrequently%20enough.%26nbsp%3B%20How%20do%20you%20run%20an%20external%20program%20from%20within%20an%20InstallScript%20installation%3F%20%0D%0A%0D%0A%0D%0AIn%20an%20InstallScript%20installation%2C%26nbsp%3Byou%20can%20do%20it%20with%20two%20functions%2C%20LaunchApp%20"></a></li><li><a title="Google Reader" class="option1_32" style="background-position:-224px 0px" rel="nofollow" target="_blank" href="http://www.google.com/reader/link?url=http%3A%2F%2Fwww.installationdeveloper.com%2F251%2Frunning-an-application-from-an-installscript-installation%2F&amp;title=Running%20an%20Application%20from%20an%20InstallScript%20Installation&amp;srcURL=http%3A%2F%2Fwww.installationdeveloper.com%2F251%2Frunning-an-application-from-an-installscript-installation%2F&amp;srcTitle=Installation+Developer+InstallShield+Training+-+InstallShield+Tutorials"></a></li><li><a title="LinkedIn" class="option1_32" style="background-position:-288px 0px" rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.installationdeveloper.com%2F251%2Frunning-an-application-from-an-installscript-installation%2F&amp;title=Running%20an%20Application%20from%20an%20InstallScript%20Installation&amp;source=Installation+Developer+InstallShield+Training+-+InstallShield+Tutorials&amp;summary=%0D%0AThis%20topic%20may%20seem%20simple%20but%20the%20question%20arises%26nbsp%3Bfrequently%20enough.%26nbsp%3B%20How%20do%20you%20run%20an%20external%20program%20from%20within%20an%20InstallScript%20installation%3F%20%0D%0A%0D%0A%0D%0AIn%20an%20InstallScript%20installation%2C%26nbsp%3Byou%20can%20do%20it%20with%20two%20functions%2C%20LaunchApp%20"></a></li><li><a title="BlinkList" class="option1_32" style="background-position:0px 0px" rel="nofollow" target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Fwww.installationdeveloper.com%2F251%2Frunning-an-application-from-an-installscript-installation%2F&amp;Title=Running%20an%20Application%20from%20an%20InstallScript%20Installation"></a></li><li><a style="cursor:pointer" rel="nofollow" onMouseOut="fixOnMouseOut(document.getElementById('sociable-post-251'), event, 'post-251')" onMouseOver="more(this,'post-251')"><img style='margin-top:9px' src='http://www.installationdeveloper.com/wp-content/plugins/sociable/images/more.png'></a></li></ul><div onMouseout="fixOnMouseOut(this,event,'post-251')" id="sociable-post-251" style="display:none;">   

    <div style="top: auto; left: auto; display: block;" id="sociable">



		<div class="popup">

			<div class="content">

				<ul><li style="heigth:32px;width:32px"><a title="Myspace" class="option1_32" style="background-position:0px -32px" rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.installationdeveloper.com%2F251%2Frunning-an-application-from-an-installscript-installation%2F&amp;t=Running%20an%20Application%20from%20an%20InstallScript%20Installation"></a></li><li style="heigth:32px;width:32px"><a title="Digg" class="option1_32" style="background-position:-64px 0px" rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.installationdeveloper.com%2F251%2Frunning-an-application-from-an-installscript-installation%2F&amp;title=Running%20an%20Application%20from%20an%20InstallScript%20Installation&amp;bodytext=%0D%0AThis%20topic%20may%20seem%20simple%20but%20the%20question%20arises%26nbsp%3Bfrequently%20enough.%26nbsp%3B%20How%20do%20you%20run%20an%20external%20program%20from%20within%20an%20InstallScript%20installation%3F%20%0D%0A%0D%0A%0D%0AIn%20an%20InstallScript%20installation%2C%26nbsp%3Byou%20can%20do%20it%20with%20two%20functions%2C%20LaunchApp%20"></a></li><li style="heigth:32px;width:32px"><a title="Reddit" class="option1_32" style="background-position:-128px -32px" rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.installationdeveloper.com%2F251%2Frunning-an-application-from-an-installscript-installation%2F&amp;title=Running%20an%20Application%20from%20an%20InstallScript%20Installation"></a></li><li style="heigth:32px;width:32px"><a title="Google Bookmarks" class="option1_32" style="background-position:-192px 0px" rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.installationdeveloper.com%2F251%2Frunning-an-application-from-an-installscript-installation%2F&amp;title=Running%20an%20Application%20from%20an%20InstallScript%20Installation&amp;annotation=%0D%0AThis%20topic%20may%20seem%20simple%20but%20the%20question%20arises%26nbsp%3Bfrequently%20enough.%26nbsp%3B%20How%20do%20you%20run%20an%20external%20program%20from%20within%20an%20InstallScript%20installation%3F%20%0D%0A%0D%0A%0D%0AIn%20an%20InstallScript%20installation%2C%26nbsp%3Byou%20can%20do%20it%20with%20two%20functions%2C%20LaunchApp%20"></a></li><li style="heigth:32px;width:32px"><a title="HackerNews" class="option1_32" style="background-position:-256px 0px" rel="nofollow" target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fwww.installationdeveloper.com%2F251%2Frunning-an-application-from-an-installscript-installation%2F&amp;t=Running%20an%20Application%20from%20an%20InstallScript%20Installation"></a></li><li style="heigth:32px;width:32px"><a title="MSNReporter" class="option1_32" style="background-position:-352px 0px" rel="nofollow" target="_blank" href="http://reporter.es.msn.com/?fn=contribute&amp;Title=Running%20an%20Application%20from%20an%20InstallScript%20Installation&amp;URL=http%3A%2F%2Fwww.installationdeveloper.com%2F251%2Frunning-an-application-from-an-installscript-installation%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=%0D%0AThis%20topic%20may%20seem%20simple%20but%20the%20question%20arises%26nbsp%3Bfrequently%20enough.%26nbsp%3B%20How%20do%20you%20run%20an%20external%20program%20from%20within%20an%20InstallScript%20installation%3F%20%0D%0A%0D%0A%0D%0AIn%20an%20InstallScript%20installation%2C%26nbsp%3Byou%20can%20do%20it%20with%20two%20functions%2C%20LaunchApp%20"></a></li><li style="heigth:32px;width:32px"><a title="Sphinn" class="option1_32" style="background-position:-192px -32px" rel="nofollow" target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.installationdeveloper.com%2F251%2Frunning-an-application-from-an-installscript-installation%2F"></a></li><li style="heigth:32px;width:32px"><a title="Posterous" class="option1_32" style="background-position:-64px -32px" rel="nofollow" target="_blank" href="http://posterous.com/share?linkto=http%3A%2F%2Fwww.installationdeveloper.com%2F251%2Frunning-an-application-from-an-installscript-installation%2F&amp;title=Running%20an%20Application%20from%20an%20InstallScript%20Installation&amp;selection=%0D%0AThis%20topic%20may%20seem%20simple%20but%20the%20question%20arises%26nbsp%3Bfrequently%20enough.%26nbsp%3B%20How%20do%20you%20run%20an%20external%20program%20from%20within%20an%20InstallScript%20installation%3F%20%0D%0A%0D%0A%0D%0AIn%20an%20InstallScript%20installation%2C%26nbsp%3Byou%20can%20do%20it%20with%20two%20functions%2C%20LaunchApp%20"></a></li><li style="heigth:32px;width:32px"><a title="Tumblr" class="option1_32" style="background-position:-256px -32px" rel="nofollow" target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fwww.installationdeveloper.com%2F251%2Frunning-an-application-from-an-installscript-installation%2F&amp;t=Running%20an%20Application%20from%20an%20InstallScript%20Installation&amp;s=%0D%0AThis%20topic%20may%20seem%20simple%20but%20the%20question%20arises%26nbsp%3Bfrequently%20enough.%26nbsp%3B%20How%20do%20you%20run%20an%20external%20program%20from%20within%20an%20InstallScript%20installation%3F%20%0D%0A%0D%0A%0D%0AIn%20an%20InstallScript%20installation%2C%26nbsp%3Byou%20can%20do%20it%20with%20two%20functions%2C%20LaunchApp%20"></a></li></ul>			

			</div>        

		  <a style="cursor:pointer" onclick="hide_sociable('post-251',true)" class="close">



		  <img onclick="hide_sociable('post-251',true)" title="close" src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/closelabel.png">

		  </a>

		</div>

	</div> 

  </div></div><div class='sociable' style='float:none'><ul class='clearfix'><li id="Twitter_Counter"><a href="https://twitter.com/share" data-text="Running an Application from an InstallScript Installation - http://www.installationdeveloper.com/251/running-an-application-from-an-installscript-installation/ (via #sociablesite)" data-url="http://www.installationdeveloper.com/251/running-an-application-from-an-installscript-installation/" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script></li><li id="Facebook_Counter"><iframe src="//www.facebook.com/plugins/like.php?href=http://www.installationdeveloper.com/251/running-an-application-from-an-installscript-installation/&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe></li><li id="Google_+"><g:plusone annotation="bubble" href="http://www.installationdeveloper.com/251/running-an-application-from-an-installscript-installation/" size="medium"></g:plusone></li><li id="LinkedIn_Counter"><script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="http://www.installationdeveloper.com/251/running-an-application-from-an-installscript-installation/" data-counter="right"></script></li><li id="StumbleUpon_Counter"><script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=http://www.installationdeveloper.com/251/running-an-application-from-an-installscript-installation/"></script></li></ul></div><!-- End Sociable -->]]></content:encoded>
			<wfw:commentRss>http://www.installationdeveloper.com/251/running-an-application-from-an-installscript-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

