<?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>Mikes Musings &#187; mozilla</title>
	<atom:link href="http://mike.kaply.com/tag/mozilla/feed/" rel="self" type="application/rss+xml" />
	<link>http://mike.kaply.com</link>
	<description>Mozilla, money, microformats and more</description>
	<lastBuildDate>Mon, 14 May 2012 15:29:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Writing a Firefox Protocol Handler</title>
		<link>http://mike.kaply.com/2011/01/18/writing-a-firefox-protocol-handler/</link>
		<comments>http://mike.kaply.com/2011/01/18/writing-a-firefox-protocol-handler/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 16:21:01 +0000</pubDate>
		<dc:creator>Mike Kaply</dc:creator>
				<category><![CDATA[mozilla]]></category>
		<category><![CDATA[addons]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://mike.kaply.com/?p=811</guid>
		<description><![CDATA[So my plan for this year, in addition to posting more, is to alternate posts between Firefox related and non Firefox related. This one is Firefox related. Hopefully you&#8217;ll find it interesting either way. Have you ever thought about the things you type before the colon (:) in your browser? Like http, https, ftp or [...]]]></description>
			<content:encoded><![CDATA[<p>
So my plan for this year, in addition to posting more, is to alternate posts between Firefox related and non Firefox related. This one is Firefox related. Hopefully you&#8217;ll find it interesting either way.
</p>
<p>
Have you ever thought about the things you type before the colon (:) in your browser? Like <strong>http</strong>, <strong>https</strong>, <strong>ftp</strong> or <strong>file</strong>? These are called schemes or protocols. <a href="https://addons.mozilla.org/firefox/">Firefox add-ons</a> can add new schemes or protocols to the browser. This post will show you how to do that. We&#8217;re going to assume you have a basic knowledge of JavaScript, but have never written a Firefox add-on.
</p>
<p><span id="more-811"></span></p>
<p>
To create a protocol handler, we&#8217;ll have to implement an interface, the <a href="https://developer.mozilla.org/en/nsIProtocolHandler">nsIProtocolHandler</a> interface. Interfaces are implemented in components. <a href="https://developer.mozilla.org/en/how_to_build_an_xpcom_component_in_javascript"> Components can be written in JavaScript</a> and that&#8217;s what we&#8217;re going to do.
</p>
<p>
Before we create the component, we&#8217;ll need to come up with a scheme to use. For our example, we&#8217;re going to use <strong>t</strong>. I&#8217;m not using twitter because on Mac at least, the twitter scheme is used by the Twitter application. The scheme is going to be used to create our contract ID. The contract ID for a protocol looks like this:</p>
<pre class="brush: jscript; title: ; notranslate">
@mozilla.org/network/protocol;1?name=&lt;b&gt;scheme&lt;/b&gt;&quot;
</pre>
<p>Besides a contract ID, we&#8217;ll also need a UUID. This is just a unique identifier we&#8217;ll use to identify our component. You can create one <a href="http://www.famkruithof.net/uuid/uuidgen">here</a>.
</p>
<p>
Now that we have a contract ID and a UUID, we can start building our component. Most of what is involved in building a component is boilerplate, so we&#8217;ll only cover the protocol specific features here. If you&#8217;d like to see the entire JavaScript file for the component, <a href="http://mike.kaply.com/files/2011/01/twitterProtocolService.js">click here</a>.
</p>
<p>
the nsIProtocolHandler requires that two attributes be set, <strong>scheme</strong> which we determined earlier and <strong>protocolFlags</strong>.</p>
<pre class="brush: jscript; title: ; notranslate">
  scheme: &quot;t&quot;,
  protocolFlags: nsIProtocolHandler.URI_NORELATIVE |
                 nsIProtocolHandler.URI_NOAUTH |
                 nsIProtocolHandler.URI_LOADABLE_BY_ANYONE,
</pre>
<p>There are a <a href="https://developer.mozilla.org/en/nsIProtocolHandler#Constants">ton of options for protocolFlags</a>, and some of them can be quite confusing. I picked the ones that I knew would work for my purposes. You need to go through the list and find the appropriate ones for you. The important one is URI_LOADABLE_BY_ANYONE. You must specify either URI_LOADABLE_BY_ANYONE, URI_DANGEROUS_TO_LOAD, URI_IS_UI_RESOURCE, or URI_IS_LOCAL_FILE in order for your protocol to work.</p>
<p>
Now that we&#8217;ve specifed attributes, we need to implement a few functions. The first one we need to implement is newURI.</p>
<pre class="brush: jscript; title: ; notranslate">
  newURI: function(aSpec, aOriginCharset, aBaseURI)
  {
    var uri = Cc[&quot;@mozilla.org/network/simple-uri;1&quot;].createInstance(Ci.nsIURI);
    uri.spec = aSpec;
    return uri;
  },
</pre>
<p>Because our protocol is pretty simple, all we need to do is take the URL that was passed in (aSpec), create a new <a href="https://developer.mozilla.org/en/nsIURI">nsIURI</a> object and pass it along.
</p>
<p>
<strong>newChannel</strong> is where most of our work is going to be done.</p>
<pre class="brush: jscript; title: ; notranslate">
  newChannel: function(aURI)
  {
    var ios = Cc[&quot;@mozilla.org/network/io-service;1&quot;].getService(Ci.nsIIOService);
    /* Get twitterName from URL */
    var twitterName = aURI.spec.split(&quot;:&quot;)[1];
    var uri = ios.newURI(&quot;http://twitter.com/&quot; + twitterName, null, null);
    var channel = ios.newChannelFromURI(uri, null).QueryInterface(Ci.nsIHttpChannel);
    /* Determines whether the URL bar changes to the URL */
    channel.setRequestHeader(&quot;X-Moz-Is-Feed&quot;, &quot;1&quot;, false);
    return channel;
  },
</pre>
<p>We&#8217;re going to take the URI that was passed in, split it to get the twitter name and then create a new URI for the browser to load. (<a href="t:MikeKaply">t:MikeKaply</a> becomes <a href="http://twitter.com/MikeKaply">http://twitter.com/MikeKaply</a>). At this point we do something a little hacky. I want the URL bar to have the twitter URL in it after the page is loaded, NOT t:MikeKaply. I discovered that by setting this internal request header ( <strong>X-Moz-Is-Feed</strong>) I get the results I want. There&#8217;s probably a better way to do this, but I couldn&#8217;t find it.
</p>
<p>
Now that we&#8217;ve completed the component, we need to package it as an add-on. This is a very simple add-on, so we only need three files. Here&#8217;s what our XPI will look like:</p>
<pre>
install.rdf
chrome.manifest
  \components
     twitterService.js
</pre>
<p><a href="https://developer.mozilla.org/en/chrome_registration">chrome.manifest</a> is used to tell Firefox 4 about our component. It will look like this:</p>
<pre class="brush: jscript; title: ; notranslate">
component {YOURUUID-XXXX-XXXX-XXXX-XXXXXXXXXXXX} components/twitterProtocolService.js
contract @mozilla.org/network/protocol;1?name=t {YOURUUID-XXXX-XXXX-XXXX-XXXXXXXXXXXX}
</pre>
<p><a href="http://mike.kaply.com/files/2011/01/twitterProtocolService.js">twitterService.js</a> is our component.
</p>
<p>
I recommend using <a href="https://addons.mozilla.org/en-US/developers/tools/builder">the Add-on Builder at AMO</a> to create your first XPI. Then you can just add or remove the pieces you need.
</p>
<p>Now that we&#8217;ve created our add-on, we can package it and install it in Firefox. An XPI file is just a ZIP file renamed, so you can use any ZIP program to create the XPI. You can <a onclick="InstallTrigger.install({'Twitter Protocol':'http://mike.kaply.com/files/2011/01/twitterprotocol.xpi'});" href="#">click here to install the XPI for this example</a>.
</p>
<p>
If you type t:MikeKaply, you&#8217;ll see it redirect to http://twitter.com/Mike Kaply (actually http://twitter.com/#!/MikeKaply with the new Twitter URLs).
</p>
<p>
Congratulations, you&#8217;ve written a protocol handler.</p>
]]></content:encoded>
			<wfw:commentRss>http://mike.kaply.com/2011/01/18/writing-a-firefox-protocol-handler/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Rebrand Updated for Firefox 4</title>
		<link>http://mike.kaply.com/2011/01/13/rebrand-updated-for-firefox-4/</link>
		<comments>http://mike.kaply.com/2011/01/13/rebrand-updated-for-firefox-4/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 21:20:33 +0000</pubDate>
		<dc:creator>Mike Kaply</dc:creator>
				<category><![CDATA[mozilla]]></category>
		<category><![CDATA[rebrand]]></category>

		<guid isPermaLink="false">http://mike.kaply.com/?p=793</guid>
		<description><![CDATA[<p><img width="150" height="150" src="http://mike.kaply.com/files/2011/01/netscape-150x150.png" class="attachment-thumbnail wp-post-image" alt="Netscape Navigator 4.0b8" title="netscape" /></p>I&#8217;ve just updated Rebrand for Firefox 4. For those that don&#8217;t know, Rebrand is an add-on for Firefox that creates an XPI that &#8220;rebrands&#8221; Firefox, Thunderbird and SeaMonkey. You can change all images and product references except for the menu bar on Mac. Disclaimers apply and are displayed on startup. I&#8217;ve also updated my Netscape [...]]]></description>
			<content:encoded><![CDATA[<p><img width="150" height="150" src="http://mike.kaply.com/files/2011/01/netscape-150x150.png" class="attachment-thumbnail wp-post-image" alt="Netscape Navigator 4.0b8" title="netscape" /></p><p>
<a href="https://addons.mozilla.org/firefox/addon/2776">I&#8217;ve just updated Rebrand for Firefox 4</a>.
</p>
<p>
For those that don&#8217;t know, Rebrand is an add-on for Firefox that creates an XPI that &#8220;rebrands&#8221; Firefox, Thunderbird and SeaMonkey. You can change all images and product references except for the menu bar on Mac. Disclaimers apply and are displayed on startup.
</p>
<p>
<a onclick="InstallTrigger.install({'Rebrand':'http://mike.kaply.com/files/netscape.xpi'});" href="#">I&#8217;ve also updated my Netscape rebranding package. Install it to relive the nostalgia that was Netscape Navigator.</a>
</p>
<p>
<a href="http://mike.kaply.com/files/2011/01/netscape.png">The new about dialog looks especially good.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mike.kaply.com/2011/01/13/rebrand-updated-for-firefox-4/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Add-on-Con 2010</title>
		<link>http://mike.kaply.com/2010/12/03/add-on-con-2010/</link>
		<comments>http://mike.kaply.com/2010/12/03/add-on-con-2010/#comments</comments>
		<pubDate>Fri, 03 Dec 2010 15:18:41 +0000</pubDate>
		<dc:creator>Mike Kaply</dc:creator>
				<category><![CDATA[mozilla]]></category>
		<category><![CDATA[addoncon]]></category>

		<guid isPermaLink="false">http://kaply.com/weblog/?p=656</guid>
		<description><![CDATA[Next week is Add-on-Con and it&#8217;s exciting to see a lot of buzz this year about the event. It&#8217;s a great time to be an add-on developer, with many browser vendors participating in the space. This conference is my yearly pilgrimage to the Silicon Valley and will be extra special since my 40th birthday is [...]]]></description>
			<content:encoded><![CDATA[<p>
Next week is <a href="http://addoncon.com/">Add-on-Con</a> and it&#8217;s exciting to see a lot of buzz this year about the event. It&#8217;s a great time to be an add-on developer, with many browser vendors participating in the space.
</p>
<p>
This conference is my yearly pilgrimage to the Silicon Valley and will be extra special since my 40th birthday is on Thursday. I&#8217;ll be there from Tuesday through Friday and I&#8217;m looking forward to connecting with old friends and making new ones.
</p>
<p>
Hope to see you there!</p>
]]></content:encoded>
			<wfw:commentRss>http://mike.kaply.com/2010/12/03/add-on-con-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reimagining the CCK Wizard</title>
		<link>http://mike.kaply.com/2010/09/07/reimagining-the-cck-wizard/</link>
		<comments>http://mike.kaply.com/2010/09/07/reimagining-the-cck-wizard/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 22:44:48 +0000</pubDate>
		<dc:creator>Mike Kaply</dc:creator>
				<category><![CDATA[mozilla]]></category>
		<category><![CDATA[cck]]></category>

		<guid isPermaLink="false">http://kaply.com/weblog/?p=644</guid>
		<description><![CDATA[When I originally created the CCK Wizard for Firefox, my goal was to keep the user interface as close to the Netscape CCK as possible. Over time, I added new functionality, but I kept holding on to the original design. With Firefox 4 approaching, I think it&#8217;s time to reimagine what the CCK should be. [...]]]></description>
			<content:encoded><![CDATA[<p>
When I originally created the <a href="https://addons.mozilla.org/firefox/addon/2553/versions/">CCK Wizard for Firefox</a>, my goal was to keep the user interface as close to the Netscape CCK as possible. Over time, I added new functionality, but I kept holding on to the original design. With Firefox 4 approaching, I think it&#8217;s time to reimagine what the CCK should be.
</p>
<p>
I&#8217;d really like to try to engage the community in figure out what to do next. What should the UI look like? Is there missing functionality?
</p>
<p>
So please do me a favor, install the CCK Wizard and post your opinion. I&#8217;d love to take the CCK Wizard in a new direction, but I need some helping deciding which way to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://mike.kaply.com/2010/09/07/reimagining-the-cck-wizard/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Creating a Customized Firefox Distribution</title>
		<link>http://mike.kaply.com/2010/08/05/creating-a-customized-firefox-distribution/</link>
		<comments>http://mike.kaply.com/2010/08/05/creating-a-customized-firefox-distribution/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 16:42:04 +0000</pubDate>
		<dc:creator>Mike Kaply</dc:creator>
				<category><![CDATA[mozilla]]></category>
		<category><![CDATA[cck]]></category>
		<category><![CDATA[distribution]]></category>
		<category><![CDATA[enterprise]]></category>
		<category><![CDATA[installer]]></category>

		<guid isPermaLink="false">http://kaply.com/weblog/?p=626</guid>
		<description><![CDATA[You may have heard of the the Firefox Build Your Own Browser Project. On the web page, it says it &#8220;is a simple way that your organization can create and distribute a customized version of Firefox.&#8221; I think BYOB is a great start to solving the distribution problem, but it&#8217;s missing one key thing &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>
You may have heard of the the Firefox <a href="https://byob.mozilla.com/">Build Your Own Browser Project</a>. On the web page, it says it &#8220;is a simple way that your organization can create and distribute a customized version of Firefox.&#8221; I think BYOB is a great start to solving the distribution problem, but it&#8217;s missing one key thing &#8211; the ability to bundle your own add-ons.
</p>
<p>
What I&#8217;m going to do with this post is explain exactly how BYOB works internally so that you can create your own distribution that has all the customizations you want. There are a some downsides to our method &#8211; primarily that we are Windows only and that we can&#8217;t sign our installers with the Mozilla certificate. But it&#8217;s the only way we can create a distribution that includes our own add-ons.
</p>
<p><span id="more-626"></span></p>
<p>
BYOB works by taking advantage of the features of the distribution directory in Firefox. The main component of the distribution directory is the distribution.ini file. <a href="https://wiki.mozilla.org/Distribution_INI_File">The distribution.ini does have some documentation</a>, but there are a few more tricks that we need to know about.
</p>
<p>
<a href="http://kaply.com/weblog/2010/06/18/customizing-the-firefox-installer-on-windows/">Previously I had talked about customizing the Firefox installer</a>, and all that information is going to come into play here. What we&#8217;re going to do is after we&#8217;ve unpacked the Firefox installer we want to use, we&#8217;re going to create a subdirectory called <code>distribution</code> in the <code>nonlocalized</code> directory. In that directory, we&#8217;re going to create a file called <code>distribution.ini</code>. We can use <a href="https://wiki.mozilla.org/Distribution_INI_File">this web page</a> as a template for that file. The <code>distribution.ini</code> file is going to contain any preferences and bookmarks that we want to specify as part of our distribution. Information on how to create those things is in the sample file.
</p>
<p>
Next up are search engines. Search engines are placed in a subdirectory called <code>searchplugins</code> under the distribution directory. For search engines that we want installed for everyone, we put them in another subdirectory called <code>common</code> (<code>searchplugins/common</code>). If there are search plugins we want to be locale specific, we can put them in a directory that is named the same as the locale (<a href="https://wiki.mozilla.org/Distribution_INI_File">This is all documented in the sample distribution.ini</a>).
</p>
<p>
When I talked about customizing the Firefox installer, I indicated that you could preinstall add-ons by unzipping them into the <code>nonlocalized/extensions</code> directory. With the distribution directory, we have a new option. If we create a <code>bundles</code> directory and then put our add-ons in there, they are completely hidden from the user. They can&#8217;t be uninstalled or disabled. The method for putting add-ons in this directory is the same as before &#8211; create a directory that named the same as the ID of the add-on and then unzip the add-on into that directory.
</p>
<p>
If you&#8217;ve used BYOB, though, you may have noticed that they do things a little differently. If you bundle add-ons with your browser, they are installed the first time you start the browser. And if you create another profile, it gets those add-ons as well. And they are installed into your profile directory. This is accomplished is via a custom add-on that was created by <a href="http://appcoast.com/">Appcoast</a> called the <em>Addon Installer</em>. I could find no information at all on this add-on. I&#8217;m going to document here how it works, but if you choose to use it, it&#8217;s at your own risk. To obtain it, you can download any of the browsers at the bottom of the <a href="https://byob.mozilla.com/">BYOB page</a>. After unpacking one of those installers, you&#8217;ll see the <em>Addon Installer</em> in <code>nonlocalized/distribution/bundles/{04C927C9-E491-4DDC-9D45-54C145422A15}</code>. Just duplicate that directory in your distribution. If I get a chance, I might create a version of this that is open source.
</p>
<p>
To use the <em>Addon Installer</em>, place the XPI files you want to install into a directory called <code>extensions</code> under the <code>distribution</code> directory. Then create a file called <code>config.ini</code> in that directory. The format of the <code>config.ini</code> file is like this:
</p>
<p><code></p>
<pre>
[Extension0]
id=THE ID OF THE FIRST EXTENSION
file=THE XPI OF THE FIRST EXTENSION.XPI
Version=0.0.0
OS=ALL
[Extension1]
id=THE ID OF THE SECOND EXTENSION
file=THE XPI OF THE SECOND EXTENSION.XPI
Version=0.0.0
OS=ALL
</pre>
<p></code>Most of this is self explanatory. The only interesting part is OS. If for some reason, you need an add-on to be OS specific, put the OS name instead of ALL. You can see the OS names <a href="https://developer.mozilla.org/en/OS_TARGET">here</a>.
</p>
<p>
Once we&#8217;ve made all these customizations, we can <a href="http://kaply.com/weblog/2010/06/18/customizing-the-firefox-installer-on-windows/">follow the instructions in my previous post</a> to package our installer. Also, if you want your installer to say &#8220;Mozilla Firefox for Your Company&#8221;, don&#8217;t forget that you can do that using the <code>setup.ini</code> that is mentioned in that previous post. That&#8217;s in <code>localized/distribution</code>, NOT <code>nonlocalized/distribution</code>.
</p>
<p>
So in summary, while I usually plug the <a href="https://addons.mozilla.org/firefox/addon/2553/">CCK Wizard</a>, if all you need to do is set some default prefs, add some bookmarks, bundle some search engines and bundle some add-ons, the distribution method might be for you. If you need to do more detailed customizations, check out the <a href="https://addons.mozilla.org/firefox/addon/2553/">CCK Wizard</a>.
</p>
<p>
And as always, if you need help with any of this, you can contact <a href="http://consulting.kaply.com">Kaply Consulting</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mike.kaply.com/2010/08/05/creating-a-customized-firefox-distribution/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Won&#8217;t Someone Think of the Add-on Developers?</title>
		<link>http://mike.kaply.com/2010/08/03/wont-someone-think-of-the-add-on-developers/</link>
		<comments>http://mike.kaply.com/2010/08/03/wont-someone-think-of-the-add-on-developers/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 20:30:37 +0000</pubDate>
		<dc:creator>Mike Kaply</dc:creator>
				<category><![CDATA[mozilla]]></category>
		<category><![CDATA[addons]]></category>

		<guid isPermaLink="false">http://kaply.com/weblog/?p=608</guid>
		<description><![CDATA[I have been biting my tongue watching all the changes that add-on developers are being required to make for Firefox 4, but the various theme changes that are going in which are going to cause toolbar icons to be scaled up and/or down has put me over the edge. (See bug 583231). A lot of [...]]]></description>
			<content:encoded><![CDATA[<p>
I have been biting my tongue watching all the changes that add-on developers are being required to make for Firefox 4, but the various theme changes that are going in which are going to cause toolbar icons to be scaled up and/or down has put me over the edge. (<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=583231">See bug 583231</a>). A lot of work is going to be required by add-on developers (and artists and others) to work around these and other issues. It doesn&#8217;t help that these Firefox &#8220;betas&#8221; are no where near beta quality, and involve major changes with each beta update, which means add-on developers are having to do rework with every &#8220;beta.&#8221;
</p>
<p><span id="more-608"></span></p>
<p>
I emailed folks from the AMO team about this and they indicated that their role is only to communicate what add-on developers need to fix, not to work with the Firefox team in any way to represent add-on developers.
</p>
<p>
<b>Update:</b>That sentence above did not properly represent the email conversation. I stand by my assertion though &#8211; the AMO team does not proactively work with the Firefox team to look out for the needs of addon-developers &#8211; they communicate information after the fact. They are not on the front line saying &#8220;How will this affect add-on developers?&#8221;</p>
<p>
So there is no one involved in the Firefox 4 process that is advocating for Firefox add-on developers. We&#8217;re just expected to &#8220;roll with the punches.&#8221; I understand that we&#8217;re just consumers of the platform, but add-ons have built up a great deal of brand equity for Firefox.
</p>
</p>
<p>I find it quite short sighted of the Firefox team as a whole to alienate add-on developers this much. I&#8217;m aware that this a major release, but there should be more and better messaging around these changes. And they could certainly be batched better instead of spreading them across every beta.
</p>
<p>
So please, think of the add-on developers&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://mike.kaply.com/2010/08/03/wont-someone-think-of-the-add-on-developers/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Interactive Themes</title>
		<link>http://mike.kaply.com/2010/07/16/interactive-themes/</link>
		<comments>http://mike.kaply.com/2010/07/16/interactive-themes/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 20:20:03 +0000</pubDate>
		<dc:creator>Mike Kaply</dc:creator>
				<category><![CDATA[mozilla]]></category>
		<category><![CDATA[brand thunder]]></category>
		<category><![CDATA[persona interactive]]></category>
		<category><![CDATA[personas]]></category>

		<guid isPermaLink="false">http://kaply.com/weblog/?p=592</guid>
		<description><![CDATA[So you may wonder why we called it Personas Interactive. If you were go to the Brand Thunder Gallery, you would see what we specialize in &#8211; creating customized browser experiences for different sports teams, websites, musicians and more. These browser experiences have evolved over the years in their design, their technology and even their [...]]]></description>
			<content:encoded><![CDATA[<p>So you may wonder why we called it <a href="http://brandthunder.com/personas">Personas Interactive</a>.</p>
<p>
If you were go to the <a href="http://brandthunder.com/gallery">Brand Thunder Gallery</a>, you would see what  we specialize in &#8211; creating customized browser experiences for different sports teams, websites, musicians and more.</p>
<p>
These browser experiences have evolved over the years in their design, their technology and even <a href="http://brandthunder.com/2009/brand-thunder-brings-the-boom-to-custom-branded-browsers/">their name</a>. But regardless of the technology change, these browser experiences always required the installation of a Firefox add-on and the restart of the browser for every one that you wanted to install.
</p>
<p>
One of the reasons we created <a href="http://brandthunder.com/personas">Personas Interactive</a> was to address this issue. With the advent of Personas in Firefox 3.6, we saw the opportunity to take our browser experience to the next level. So one of the core features of Personas Interactive is Interactive Themes.
</p>
<p>
Interactives Themes take the <a href="http://kaply.com/weblog/2010/07/09/enhanced-personas/">Enhanced Personas we talked about last time</a> and add interactivity like clickable logos, sidebars, toolbars, feedreaders and more. So instead of just providing people with a picture of your website or brand, you can provide a way for them to connect with you in the browser.
</p>
<p><span id="more-592"></span></p>
<p>
Before we continue, I have to make a disclaimer. Up to this point, we&#8217;ve talked about things that anyone can do (set up their own Personas gallery, create Enhanced Personas) but at this point in time, an Interactive Theme can only be created by <a href="http://brandthunder.com/">Brand Thunder</a>. We&#8217;re working on expanding the technology so it is available to anyone. That doesn&#8217;t mean that you can&#8217;t have an Interactive Theme, though. Brand Thunder would love to work with your band, sports team, website or company to create an Interactive Theme. Just send an email to <a href="mailto:info@brandthunder.com">info@brandthunder.com</a>.
</p>
<p>So let&#8217;s look at a diagram that shows the differences between Personas, Enhanced Personas and Interactive Themes.</p>
<table>
<tr>
<td>&nbsp;</td>
<td>Persona</td>
<td>Enhanced Persona</td>
<td>Interactive Theme</td>
</tr>
<tr>
<td>
Background Image
</td>
<td>
X</td>
<td>
X</td>
<td>
X
</td>
</tr>
<tr>
<td>
Change Text Color
</td>
<td>
X
</td>
<td>
X
</td>
<td>
X
</td>
</tr>
<tr>
<td>
Multiple Background Images
</td>
<td>
&nbsp;
</td>
<td>
X
</td>
<td>
X
</td>
</tr>
<tr>
<td>
Position Background Images
</td>
<td>
&nbsp;
</td>
<td>
X
</td>
<td>
X
</td>
</tr>
<tr>
<td>
Resize Background Images
</td>
<td>
&nbsp;
</td>
<td>
X
</td>
<td>
X
</td>
</tr>
<tr>
<td>
Repeat Background Images
</td>
<td>
&nbsp;
</td>
<td>
X
</td>
<td>
X
</td>
</tr>
<tr>
<td>
Clickable Logos
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
<td>
X
</td>
</tr>
<tr>
<td>
Sidebar
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
<td>
X
</td>
</tr>
<tr>
<td>
Toolbar
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
<td>
X
</td>
</tr>
<tr>
<td>
Integrated Search
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
<td>
X
</td>
</tr>
<tr>
<td>
Feed Reader
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
<td>
X
</td>
</tr>
<tr>
<td>
Sponsorships
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
<td>
X
</td>
</tr>
<tr>
<td>
Advertising
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
<td>
X
</td>
</tr>
</table>
<p>
So what does this mean in practice?
</p>
<p>
If you were to go to <a href="http://brandthunder.com/personas">the Personas Interactive page</a> with Personas Interactive installed, you would see some of our Interactive Themes in action.
</p>
<p>
Are you a fan of the <a href="http://www.goblinscomic.com/">Goblins Web Comic</a>? There&#8217;s an Interactive theme that keeps your favorite web comic close at hand. If you need your daily fix of <a href="http://www.thedailybeast.com/">The Daily Beast</a>, you can install an Interactive Theme that gives you links and news from The Daily Beast as well as the top story of the day updated in your browser. Is your team the <a href="http://www.colts.com/">Indianapolis Colts</a>? You can connect with them right in your browser. Or maybe you like movies? The Movie Premiere Interactive Theme is updated with a new movie poster every 15 minutes. Can&#8217;t get enough of <a href="http://www.collegehumor.com/">CollegeHumor</a>? Install the Interactive Theme and your favorite links will be one click away.
</p>
<p>
And we&#8217;ve got over a hundred more Interactive Themes coming in the next few months. Besides porting our existing themes over to Personas Interactive, we&#8217;re working with great brands like the <a href="http://collegenetwork.cbssports.com/">CBS Sports College Network</a> to bring your favorite college sports teams to the browser.
</p>
<p>
So what should you do? Install <a href="http://brandthunder.com/personas">Personas Interactive</a>. Setup your own Personas gallery. Create an Enhanced Persona. And stay tuned, because we&#8217;ve got some great stuff coming your way.
</p></p>
]]></content:encoded>
			<wfw:commentRss>http://mike.kaply.com/2010/07/16/interactive-themes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enhanced Personas</title>
		<link>http://mike.kaply.com/2010/07/09/enhanced-personas/</link>
		<comments>http://mike.kaply.com/2010/07/09/enhanced-personas/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 16:34:12 +0000</pubDate>
		<dc:creator>Mike Kaply</dc:creator>
				<category><![CDATA[mozilla]]></category>
		<category><![CDATA[brand thunder]]></category>
		<category><![CDATA[personas]]></category>
		<category><![CDATA[personas interactive]]></category>

		<guid isPermaLink="false">http://kaply.com/weblog/?p=559</guid>
		<description><![CDATA[In explaining exactly what a Persona was in my last post, I mentioned that a Persona contains two images &#8211; a header and a footer. I also indicated that these images are very large &#8211; 3000 pixels wide. You may wonder why that is. Personas is designed to do one thing; take an image and [...]]]></description>
			<content:encoded><![CDATA[<p>
In <a href="http://kaply.com/weblog/2010/07/08/what-is-a-persona/">explaining exactly what a Persona was in my last post</a>, I mentioned that a Persona contains two images &#8211; a header and a footer. I also indicated that these images are very large &#8211; 3000 pixels wide. You may wonder why that is. Personas is designed to do one thing; take an image and put it in the upper right corner of the browser. It doesn&#8217;t resize or scale the image. If you resize your browser very wide, you just see more of the image on the left hand side. That 3000 pixels number is a completely arbitrary number that is designed to be the maximum you will resize your browser.
</p>
<p>
This architecture creates problems.</p>
<ul>
<li>The file sizes of the images can be very large.
<li>If you have a repetitive image, you have to cut and paste it to make it 3000 pixels wide.
<li>If you want to use an existing image, you&#8217;ll have to do something to convert it to 3000 pixels wide.
<li>You can&#8217;t guarantee that anything appears in the upper left corner.
<li>You can&#8217;t have more than one background image.
</ul>
<p>All of these problems have already been solved by CSS, but none of the CSS to do anything to background images is available in Personas. That&#8217;s where the Enhanced Personas feature of <a href="http://brandthunder.com/personas/">Personas Interactive</a> comes in.
</p>
<p>
Enhanced Personas adds additional attributes to the Personas JSON that gives you all the things that CSS backgrounds have to offer. This includes multiple background images! Here are the attributes we&#8217;ve added:</p>
<dl>
<dt>backgroundImage</dt>
<dd>Specifies the URL of an image or multiple images that will be used for the background. Multiple images are separated by a comma. The images are drawn from right to left, so the left most image appears on top. We aren&#8217;t using the actual CSS syntax here, so don&#8217;t put url(&#8216;&#8230;&#8217;) around the images.</dd>
<dt>backgroundPosition</dt>
<dd>Specifies the position of the images in backgroundImage using <a>standard CSS rules</a>. These rules are separated by a comma.</p>
<dt>backgroundRepeat</dt>
<dd>Specifies the repeat of the images in backgroundImage using <a href="https://developer.mozilla.org/en/CSS/background-repeat">standard CSS rules</a>. These rules are separated by a comma.</p>
<dt>backgroundSize</dt>
<dd>Dpecifies the size of the images in backgroundImage using <a href="https://developer.mozilla.org/en/CSS/background-size">standard CSS rules</a>. These rules are separated by a comma.</p>
<dt>backgroundColor</dt>
<dd>Whereas accentcolor in the original Personas specification is used for both the titlebar and the background of the browser, we allow you to specify just the background color. It is never used for the titlebar. If you specify both a backgroundColor and an accentcolor, accentcolor is used for the titlebar, and backgroundColor is used for the background of the browser.</p>
<dt>textShadow</dt>
<dd>
One of the other areas that causes problems with Personas is the area of text shadows. We&#8217;ve provided an additional attribute to let you control the text shadow. Personas determines the color of the text shadow to use for your Persona by computing the luminance of the <b>textcolor</b> specified in your Persona.<br />
<code></p>
<pre>
let luminance = 0.2126 * r + 0.7152 * g + 0.0722 * b;
</pre>
<p></code>If the luminance is less than or equal to 110, it makes your text shadow light, otherwise it makes your text shadow dark. We&#8217;ve made <strong>textShadow</strong> an attribute that you can specify, and you can give it three values: <strong>dark</strong>, <strong>bright</strong> or <strong>none</strong>. You can experiment with these three values to see which one makes your text look good on your Persona.
</dd>
<h3>Summing it all up</h3>
<p>
So what does all this give us? The ability to create a Persona that takes full advantage of CSS. If you hover over the preview images below with <a href="http://brandthunder.com/personas/">Personas Interactive</a> installed, you&#8217;ll see examples of Enhanced Personas in action. Each of these Enhanced Personas has an image on the left, an image on the right and a repeating image for the background. If you install them, you can resize the browser and see that the images stay in both corners of the browser. I&#8217;ve deliberately placed breaks in the background image so you can see the repeat. You&#8217;ll also notice that I&#8217;ve used a different text shadow option for each of the Personas. See if you can figure out which value I used.</p>
<p><img alt="Enhanced Persona Demo 1" src="http://brandthunder.com/images/gallery/crayonred-large.png">attachPersona(document.getElementById(&#8220;enhancedpersonademo1-preview&#8221;));<img alt="Enhanced Persona Demo 2" src="http://brandthunder.com/images/gallery/crayonred-large.png">attachPersona(document.getElementById(&#8220;enhancedpersonademo2-preview&#8221;));<img alt="Enhanced Persona Demo 3" src="http://brandthunder.com/images/gallery/crayonred-large.png">attachPersona(document.getElementById(&#8220;enhancedpersonademo3-preview&#8221;));<img alt="Enhanced Persona Demo 4" src="http://brandthunder.com/images/gallery/crayonred-large.png">attachPersona(document.getElementById(&#8220;enhancedpersonademo4-preview&#8221;));</p>
<p><img alt="Enhanced Persona Demo 5" src="http://brandthunder.com/images/gallery/crayonred-large.png">attachPersona(document.getElementById(&#8220;enhancedpersonademo5-preview&#8221;));<img alt="Enhanced Persona Demo 6" src="http://brandthunder.com/images/gallery/crayonred-large.png">attachPersona(document.getElementById(&#8220;enhancedpersonademo6-preview&#8221;));<img alt="Enhanced Persona Demo 7" src="http://brandthunder.com/images/gallery/crayonred-large.png">attachPersona(document.getElementById(&#8220;enhancedpersonademo7-preview&#8221;));<img alt="Enhanced Persona Demo 8" src="http://brandthunder.com/images/gallery/crayonred-large.png">attachPersona(document.getElementById(&#8220;enhancedpersonademo8-preview&#8221;));
</p>
<p>
Here are some other things to keep in mind with Enhanced Personas.
</p>
<p><strong>backgroundImage</strong> is a required attribute. This means that even if you use the other attributes, if <strong>backgroundImage</strong> isn&#8217;t specified, they won&#8217;t be honored. The only exception to this is <strong>textShadow</strong>.
</p>
<p>
You can create an Enhanced Persona that works with Firefox out of the box. Just specify both a <strong>headerURL</strong> and a <strong>backgroundImage</strong>. Personas Interactive users will get the Enhanced Persona.
</p>
<p>
For our next installment, we&#8217;re going to talk about the hallmark of <a href="http://brandthunder.com/personas/">Personas Interactive</a>, Interactive Themes and Interactive Personas.
</p>
<p>
This is part three in my series about <a href="http://brandthunder.com/personas/">Personas Interactive from Brand Thunder</a>. If you missed the first two, they are <a href="http://kaply.com/weblog/2010/07/07/personas-interactive/">Introduction to Personas Interactive</a> and <a href="http://kaply.com/weblog/2010/07/08/what-is-a-persona/">What is a Persona?</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mike.kaply.com/2010/07/09/enhanced-personas/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Personas Interactive</title>
		<link>http://mike.kaply.com/2010/07/07/personas-interactive/</link>
		<comments>http://mike.kaply.com/2010/07/07/personas-interactive/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 17:20:01 +0000</pubDate>
		<dc:creator>Mike Kaply</dc:creator>
				<category><![CDATA[mozilla]]></category>
		<category><![CDATA[brand thunder]]></category>
		<category><![CDATA[personas]]></category>

		<guid isPermaLink="false">http://kaply.com/weblog/?p=522</guid>
		<description><![CDATA[Brand Thunder released a new theme for the Goblins web comic today. While it&#8217;s a great theme and I&#8217;m excited to have it out there, I&#8217;m more excited about how we&#8217;re delivering it. Goblins is the first theme we are delivering on our new Personas Interactive platform. Personas Interactive is a new add-on that allows [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://brandthunder.com/">Brand Thunder</a> released a new theme for the <a href="http://goblinscomic.com">Goblins web comic</a> today. While it&#8217;s a great theme and I&#8217;m excited to have it out there, I&#8217;m more excited about how we&#8217;re delivering it. Goblins is the first theme we are delivering on our new <strong><a href="http://brandthunder.com/personas/">Personas Interactive</a></strong> platform.</p>
<p>
Personas Interactive is a new add-on that allows us to deliver all of our interactive themes with one click in the same way that Personas works. In the next week or so, it will be available as a standalone download. Right now you can get it by <a href="http://pages.brandthunder.com/goblinspersona@brandthunder.com/download">downloading the Goblins theme</a>.
</p>
<p>
But Personas Interactive isn&#8217;t just about interactive themes. It provides major enhancements to Personas within Firefox and adds support for Enhanced Personas (more on that later). I&#8217;d like to take a few posts to talk about what we&#8217;ve done with Personas Interactive. First we&#8217;re going to talk about what we&#8217;ve done to Personas; then we&#8217;re going to talk about Enhanced Personas and Interactive Themes/Interactive Personas. We&#8217;ll finish the series up by going into details about how web developers can use our new features.
</p>
<p>
Let&#8217;s start with what we&#8217;ve done to Personas within Firefox.
</p>
<h3>
We&#8217;ve removed the limits<br />
</h3>
<p>
Firefox currently has a limit of eight Personas. We&#8217;ve completely removed that limit. You can have as many Personas installed as you would like.
</p>
<h3>
We&#8217;ve removed the limitations<br />
</h3>
<p>
Firefox prevented Personas from working with any theme but the default theme. We&#8217;ve removed that limitation. They don&#8217;t always work right, but at least you can try.
</p>
<h3>
We&#8217;ve removed the lock-in<br />
</h3>
<p>
Firefox uses the same permission model for Personas that it does for the installation of extensions. What this means is that if you give a site permission to install Personas, you&#8217;re also giving it permission to install extensions. For this reason, Firefox does not make it easy for you to enable other sites to provide previews and host Personas. We&#8217;ve created a new permission model for Personas so you can give a site permission to preview Personas knowing that all they can do is preview and install Personas. Now any site can host a Personas gallery! We&#8217;ll be providing more detail in the next week on how to do this or if you want to get started now, send me an email. And if you want to see this in action, check out <a href="http://en.design-noir.de/mozilla/themes/">design noir</a>.
</p>
<h3>
We&#8217;ve updated the look (on Windows)<br />
</h3>
<p>
Personas on Windows just don&#8217;t look right. With the gray tab and the extra dark tab strip, they just don&#8217;t pop like they do on the Mac. We&#8217;ve updated the Personas look on Windows to be more consistent.
</p>
<h3>
We&#8217;ve given you the choice<br />
</h3>
<p>
We&#8217;ve added additional configuration options so that you can make your Personas look the way you want them. If you wish you could see just a little more of your Persona, add some space. If you don&#8217;t want the titlebar to change color on Mac, turn it off. If text shadows make your Persona look bad, turn them off.
</p>
<h3>We&#8217;ve added some really cool stuff</h3>
<p>
We&#8217;ve enabled site specific Personas. Any website can put one line in their HTML so that people see a Persona when they viewing that site. Of course they have to ask your permission! If you want to check this out, you can load <a href="http://kaply.com/weblog">my blog</a> with Personas Interactive installed.
</p>
<p>
In my next post, I&#8217;ll be covering Enhanced Personas. The best analogy I can give is that Personas are like a bumper sticker on your browser. For the artist, Enhanced Personas give you a palette so you can size, position and repeat any number of images on the background to create a design that&#8217;s exactly what you want and that resizes with the browser. I think you&#8217;ll like it.
</p>
<p>
One more note &#8211; Brand Thunder brings you VERY cool themes and extensions for FREE, but each takes a team of designers and developers. Brand Thunder themes include Bing as the default search engine since our primary revenue source is our search partners, Bing and Ask, so please give them a try.
</p>
<p>
And before you ask, we&#8217;re hard at work on Firefox 4 support. We hope to have something in the next few weeks.</p>
]]></content:encoded>
			<wfw:commentRss>http://mike.kaply.com/2010/07/07/personas-interactive/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Customizing the Firefox Installer on Windows</title>
		<link>http://mike.kaply.com/2010/06/18/customizing-the-firefox-installer-on-windows/</link>
		<comments>http://mike.kaply.com/2010/06/18/customizing-the-firefox-installer-on-windows/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 16:23:57 +0000</pubDate>
		<dc:creator>Mike Kaply</dc:creator>
				<category><![CDATA[mozilla]]></category>
		<category><![CDATA[cck]]></category>
		<category><![CDATA[enterprise]]></category>
		<category><![CDATA[installer]]></category>
		<category><![CDATA[rebrand]]></category>

		<guid isPermaLink="false">http://kaply.com/weblog/?p=505</guid>
		<description><![CDATA[One of the questions I get asked a lot is how to customize the Firefox installer on Windows and how to bundle extensions with it. I&#8217;ve spent the past few days learning a great deal about this subject, so I thought I would take this opportunity to provide a refresher on working with the Firefox [...]]]></description>
			<content:encoded><![CDATA[<p>
One of the questions I get asked a lot is how to customize the Firefox installer on Windows and how to bundle extensions with it. I&#8217;ve spent the past few days learning a great deal about this subject, so I thought I would take this opportunity to provide a refresher on working with the Firefox installer on Windows. I&#8217;m going to do it as a Q&amp;A so hopefully folks will get answers to the common questions they have.
</p>
<p>
Standard disclaimer: Under no circumstances should you use this information to create a custom Firefox install and redistribute it to anyone outside your organization. If you want more information, you can consult the <a href="http://www.mozilla.org/foundation/trademarks/">Mozilla Foundation Trademark Policy</a>.
</p>
<h3>What tools do I need to work with the Firefox installer?</h3>
<p>
The primary tool you need is <a href="http://www.7-zip.org/">7-Zip</a>. I install the <a href="https://developer.mozilla.org/en/windows_build_prerequisites#MozillaBuild">MozillaBuild package</a> which gives me all the tools I need. Even though the Firefox Installer is NSIS based, we will not need to use NSIS for most customizations. I&#8217;ll talk a little bit about the end about what kinds of things you would need NSIS to do.
</p>
<h3>How do I unpack the Firefox installer?</h3>
<p>
The Firefox installer is created using 7-Zip. So you can grab any of the Windows installers that end in EXE and unpack them. Any of the Windows installers on the <a href="http://www.mozilla.com/en-US/firefox/all.html">Firefox download page</a> will work. Once you&#8217;ve downloaded the EXE, create a temporary directory and type:<br />
<code>
<pre>7z x "Firefox Setup 3.6.3.exe"</pre>
<p></code><br />
This will unpack the contents of the installer so we can modify it.
</p>
<h3>How do I bundle my extension with the Firefox installer?</h3>
<p>
Bundling your extension with the Firefox installer is just a matter of putting it in the right place. Then when we package up the installer at the end, it will get installed along with Firefox. For most extensions, the right place is <code>nonlocalized/extensions</code>. Inside that directory, create a subdirectory that corresponds to the ID of the extension you want to preinstall with Firefox. Then unzip the XPI into that directory. You can find the ID by looking at the install.rdf file inside the XPI. You can add as many extensions as you want into the installer.
</p>
<h3>What are some useful extensions I can bundle with Firefox</h3>
<p>
I&#8217;ve created two extensions that create interesting things to bundle with Firefox. The first is the <a href="https://addons.mozilla.org/firefox/addon/2553">CCK Wizard</a>. The CCK Wizard can be used to change various defaults in Firefox so that you can customize it for deployment in your organization. The second is <a href="https://addons.mozilla.org/firefox/addon/2776">Rebrand</a>. Rebrand allows you to change the internal branding used in Firefox.
</p>
<h3>Can I change the names used in the installer?</h3>
<p>
Yes, you can change the names used in the installer. To do this, you need to create a directory called <code>distribution</code> inside the <code>localized</code> directory that was created when you unpacked the installer. Create a file called <code>setup.ini</code> in this directory. Here&#8217;s what it looks like:<br />
<code></p>
<pre>
[Branding]
BrandFullName=Mike's Browser
BrandShortName=Browser
</pre>
<p></code><br />
BrandFullName will be used to replace &#8220;Mozilla Firefox&#8221; and BrandShortName will be used to replace &#8220;Firefox&#8221;.</p>
<h3>Can I change the images used in the installer?</h3>
<p>
Yes, you can change the images used in the installer. In that same directory where you put the setup.ini, you can put two files, <code>modern-wizard.bmp</code> and <code>modern-header.bmp</code>.  The first images corresponds to <a href="http://mxr.mozilla.org/mozilla1.9.2/source/other-licenses/branding/firefox/wizWatermark.bmp">the large image on the first page of the installer</a>. The second image corresponds to <a href="http://mxr.mozilla.org/mozilla1.9.2/source/other-licenses/branding/firefox/wizHeader.bmp">the small image that is used on later pages of the installer</a>. You can use the linked images as a reference to know what size to make these images.</p>
<h3>How do I repackage the installer?</h3>
<p>
To repackage the installer, first you need to zip up the changes that you made. Type:<br />
<code></p>
<pre>
7z a -r -t7z app.7z -mx -m0=BCJ2 -m1=LZMA:d24 -m2=LZMA:d19 -m3=LZMA:d19 -mb0:1 -mb0s1:2 -mb0s2:3
</pre>
<p></code><br />
This will create a file called app.7z that has all the changes we made. Now we need to package that file with some other files to create the final EXE. We&#8217;ll need the file <a href="http://mxr.mozilla.org/mozilla1.9.2/source/other-licenses/7zstub/firefox/7zSD.sfx">7zSD.sfx which you can download from Mozilla</a>. And we&#8217;ll need a file called app.tag which you can create. It looks like this:<br />
<code></p>
<pre>
;!@Install@!UTF-8!
Title="Mozilla Firefox"
RunProgram="setup.exe"
;!@InstallEnd@!
</pre>
<p></code><br />
Once we have these files, we can run the command:<br />
<code></p>
<pre>
copy /B 7zSD.sfx+app.tag+app.7z our_new_installer.exe
</pre>
<p></code><br />
to package them all as an EXE. Don&#8217;t forget the /B. It indicates that the files are binary so Windows won&#8217;t put an EOF marker on them.
</p>
<h3>Can I change the defaults that are set in the installer like the install directory or the checkboxes?</h3>
<p>
At this time, there is no way to change the defaults in the installer without rebuilding the installer. There&#8217;s a <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=572405">bug open on this with a patch</a>, so hopefully this will be fixed for Firefox 4.
</p>
<h3>Can I make my totally rebranded Firefox coexist nicely with an existing Firefox?</h3>
<p>
There are a couple ways to do this. The easiest way is to use the <code>-no-remote</code> parameter when you start Firefox. This causes the Firefox you are starting to not connect to the Firefox that is currently running. When you do this, you have to specify a different profile using the <code>-P</code> parameter. Alternatively, you can change the internal identifiers that Firefox uses. Then it will be considered to be a completely different browser. If you choose to do this, you should be aware that you will not receive updates and there will be other side effects. This is not a decision that should be taken lightly. Also, your profiles will be stored in different locations as well. If you want to do this, check out the file <code>application.ini</code> in the nonlocalized directory. The variables you want to change are Vendor and Name. Again, you do this at your own risk.
</p>
<h3>What can I do if I&#8217;m willing to rebuild the installer with NSIS?</h3>
<p>
If you are willing to rebuild the installer, you can change things like the name of the entry in the Add/Remove programs list, as well as the install directory and other defaults. This is a nontrivial exercise because some of the required files are built as part of the Mozilla build proces and are not available in the build tree. If you&#8217;re really interested in doing this, you can contact <a href="mailto:consulting@kaply.com">Kaply Consulting</a> and we can talk about it.
</p>
<p>
I hope this answered some questions folks have. If anyone has any more questions, please don&#8217;t hesistate to ask.</p>
]]></content:encoded>
			<wfw:commentRss>http://mike.kaply.com/2010/06/18/customizing-the-firefox-installer-on-windows/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  mike.kaply.com/tag/mozilla/feed/ ) in 1.04685 seconds, on May 22nd, 2012 at 9:48 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 22nd, 2012 at 10:48 am UTC -->
