<?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>Mark's World &#187; netscape</title>
	<atom:link href="http://www.digitalspace.ca/tag/netscape/feed" rel="self" type="application/rss+xml" />
	<link>http://www.digitalspace.ca</link>
	<description>GNU Not just another ranting blog</description>
	<lastBuildDate>Thu, 14 Jan 2010 05:35:13 +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>Writing auto-updaters</title>
		<link>http://www.digitalspace.ca/2008/01/28/writing-auto-updaters</link>
		<comments>http://www.digitalspace.ca/2008/01/28/writing-auto-updaters#comments</comments>
		<pubDate>Tue, 29 Jan 2008 00:34:02 +0000</pubDate>
		<dc:creator>Mark Lise</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[auto update]]></category>
		<category><![CDATA[download manager]]></category>
		<category><![CDATA[Flock]]></category>
		<category><![CDATA[netscape]]></category>

		<guid isPermaLink="false">http://www.digitalspace.ca/2008/01/28/writing-auto-updaters</guid>
		<description><![CDATA[<p>I was presented with a problem to solve last week &#8211; how do you get a Mozilla product to automatically suggest and download another product?  The method I came up with was use the extension updater to our advantage:  We can push an update via the browser&#8217;s autoupdate mechanism to install and extension [...]]]></description>
			<content:encoded><![CDATA[<p>I was presented with a problem to solve last week &#8211; how do you get a Mozilla product to automatically suggest and download another product?  The method I came up with was use the extension updater to our advantage:  We can push an update via the browser&#8217;s autoupdate mechanism to install and extension which does all the work for us!</p>
<p>1) Built-in update manager downloads and installs a custom xpi.</p>
<p>2) This extension will load on next start, so all we need to do is overlay the browser.xul and we&#8217;ve got startup on every instance from that moment forward.  All of our intended logic is encapsulated and run with privileges inside the chrome.</p>
<p>3) Use the hidden <a href="http://www.digitalspace.ca/2008/01/24/the-hidden-window-trick" target="_blank">window trick</a> to limit launching of the code to once-per-session.</p>
<p>4) Use the &#8220;@mozilla.org/download-manager;1&#8243; CID to initiate the download and then monitor all downloads using the observer service (watch for dl-start/dl-done etc).</p>
<p>5) Once that is complete, you can then call downloadedFileObject.targetFile.launch() and your installer will run!</p>
<p>More details will follow when I can release the code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalspace.ca/2008/01/28/writing-auto-updaters/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
