<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>A little work blog &#187; startup</title>
	<atom:link href="http://leereid.wordpress.com/tag/startup/feed/" rel="self" type="application/rss+xml" />
	<link>http://leereid.wordpress.com</link>
	<description>Windows software installation, packaging &#38; distribution</description>
	<lastBuildDate>Sun, 06 Dec 2009 22:19:32 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='leereid.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/73d3af8ccae7dc4fa1fc97e139659fd7?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>A little work blog &#187; startup</title>
		<link>http://leereid.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://leereid.wordpress.com/osd.xml" title="A little work blog" />
		<item>
		<title>Active Setup &#8211; your friend!</title>
		<link>http://leereid.wordpress.com/2008/07/23/active-setup-your-friend/</link>
		<comments>http://leereid.wordpress.com/2008/07/23/active-setup-your-friend/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 01:10:23 +0000</pubDate>
		<dc:creator>leereid</dc:creator>
				<category><![CDATA[Packaging]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[XP]]></category>
		<category><![CDATA[ActiveSetup]]></category>
		<category><![CDATA[logon]]></category>
		<category><![CDATA[registry]]></category>
		<category><![CDATA[startup]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://leereid.wordpress.com/?p=42</guid>
		<description><![CDATA[Active Setup is a useful tool to install per-user files and registry settings when you don&#8217;t have anything else on the computer to act as an entry point. How it works is fairly simple:

Create a registry key in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components &#8211; call it MyApp. It will be easier to distinguish if you use a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leereid.wordpress.com&blog=1848353&post=42&subd=leereid&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Active Setup is a useful tool to install per-user files and registry settings when you don&#8217;t have anything else on the computer to act as an entry point. How it works is fairly simple:</p>
<ol>
<li>Create a registry key in <strong>HKEY_LOCAL_MACHINE</strong>\SOFTWARE\Microsoft\Active Setup\Installed Components &#8211; call it MyApp. It will be easier to distinguish if you use a name rather than a GUID.</li>
<li>Create a string value called ComponentID, put in MyApp</li>
<li>Create a string value called StubPath, put in the command you want to run. Some examples could be msiexec&#8230;, cscript&#8230;, setup.exe, myapp.exe etc.</li>
<li>Create a string value called Version, put in 1</li>
</ol>
<p>Now, every time a user logs in to that computer, Windows will check if <strong>HKEY_CURRENT_USER\</strong>SOFTWARE\Microsoft\Active Setup\Installed Components\MyApp exists.</p>
<p>If it doesn&#8217;t exist, it will execute the command in StubPath under the user&#8217;s context, then create <strong>HKEY_CURRENT_USER\</strong>SOFTWARE\Microsoft\Active Setup\Installed Components\MyApp. If it does exist, it will check the version and if equal or greater will do nothing.</p>
<p>This doco from <a href="http://etlengineering.com/installer/activesetup.txt" target="_blank">Ed Tippelt</a> contains a bit more detail. With any luck, I&#8217;ll put together a vbscript to illustrate this further. [EDIT] Here’s the script:</p>
<p>Set objShell = WScript.CreateObject(”WScript.Shell”)<br />
appName = “MyApp”<br />
ActiveSetupSource = “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\” &amp; <strong>appName</strong> &amp; “\”<br />
 <br />
objShell.RegWrite  ActiveSetupSource &amp; “(Default)” , <strong>appName</strong> &amp; ” Install”<br />
objShell.RegWrite  ActiveSetupSource &amp; “ComponentID” , <strong>appName</strong><br />
objShell.RegWrite  ActiveSetupSource &amp; “StubPath” , “msiexec c:\Data\myapp.msi”<br />
objShell.RegWrite  ActiveSetupSource &amp; “Version” , “1″</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/leereid.wordpress.com/42/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/leereid.wordpress.com/42/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/leereid.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/leereid.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/leereid.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/leereid.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/leereid.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/leereid.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/leereid.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/leereid.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/leereid.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/leereid.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leereid.wordpress.com&blog=1848353&post=42&subd=leereid&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://leereid.wordpress.com/2008/07/23/active-setup-your-friend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/362111eaca8f527dda1e4bea90f2e162?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">leereid</media:title>
		</media:content>
	</item>
	</channel>
</rss>