<?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>Mike&#039;s Musings &#187; cck</title>
	<atom:link href="http://kaply.com/weblog/tag/cck/feed/" rel="self" type="application/rss+xml" />
	<link>http://kaply.com/weblog</link>
	<description>My musings about mozilla, microformats, me and my motivations.</description>
	<lastBuildDate>Fri, 16 Jul 2010 20:20:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Customizing the Firefox Installer on Windows</title>
		<link>http://kaply.com/weblog/2010/06/18/customizing-the-firefox-installer-on-windows/</link>
		<comments>http://kaply.com/weblog/2010/06/18/customizing-the-firefox-installer-on-windows/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 16:23:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[firefox]]></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 &#8230; <a href="http://kaply.com/weblog/2010/06/18/customizing-the-firefox-installer-on-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></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&#038;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://kaply.com/weblog/2010/06/18/customizing-the-firefox-installer-on-windows/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Hiding the CCK</title>
		<link>http://kaply.com/weblog/2010/03/23/hiding-the-cck/</link>
		<comments>http://kaply.com/weblog/2010/03/23/hiding-the-cck/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 14:48:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[cck]]></category>

		<guid isPermaLink="false">http://kaply.com/weblog/?p=475</guid>
		<description><![CDATA[In previous versions of the CCK, I provided the ability to hide and or/lock the CCK that is generated. Locking prevents the user from uninstalling the add-on, but it is rather useless since the user can still disable it. Hiding &#8230; <a href="http://kaply.com/weblog/2010/03/23/hiding-the-cck/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>
In previous versions of the CCK, I provided the ability to hide and or/lock the CCK that is generated. Locking prevents the user from uninstalling the add-on, but it is rather useless since the user can still disable it. Hiding preventing the user from disabling or uninstalling.
</p>
<p>
Unfortunately Mozilla removed the ability for an add-on to hide itself in Firefox 3.6.
</p>
<p>Luckily working around this is very easy and will be included in the next version of the CCK Wizard. In order to make this work, I&#8217;m going to provide one option that hides the add-on. Lock and hide will no longer be separate. This seems rather logical since the lock option is pretty useless by itself.
</p>
<p>
Note that none of these options work unless the add-on is installed in the same directory where the Firefox executable is located.</p>
]]></content:encoded>
			<wfw:commentRss>http://kaply.com/weblog/2010/03/23/hiding-the-cck/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CCK Wizard Update and FAQs</title>
		<link>http://kaply.com/weblog/2010/03/03/cck-wizard-update-and-faqs/</link>
		<comments>http://kaply.com/weblog/2010/03/03/cck-wizard-update-and-faqs/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 16:32:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[cck]]></category>

		<guid isPermaLink="false">http://kaply.com/weblog/?p=428</guid>
		<description><![CDATA[I&#8217;ve updated the CCK Wizard for Firefox 3.6. It&#8217;s available here. It will be on AMO once the translations are done and if no one finds any major issues. Here&#8217;s a summary of the changes: Updated for new Firefox 3.6 &#8230; <a href="http://kaply.com/weblog/2010/03/03/cck-wizard-update-and-faqs/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>
I&#8217;ve updated the <a href="https://addons.mozilla.org/firefox/addon/2553">CCK Wizard for</a> Firefox 3.6. It&#8217;s available <a href="http://kaply.com/addons/cckwizard/cckwizard-1.2.5.2.xpi">here</a>. It will be on AMO once the translations are done and if no one finds any major issues. Here&#8217;s a summary of the changes:
</p>
<ul>
<li>Updated for new Firefox 3.6 proxy panel</li>
<li>Two CCKs can now coexist (Company Identifiers must be unique to each CCK)</li>
<li>Bundling XPIs and JARs no longer uses XPI bundles &#8211; they are explicitly installed upon first run of the CCK (please test this if you bundle multple XPIs)</li>
<li>All translated CCK Wizards should now be working</li>
<li>First run screen added to CCK Wizard install</li>
<li>A few bugs fixed</li>
</ul>
<p>Some other items of note:</p>
<p>
As I mentioned before, I&#8217;ve moved CCK Wizard development to <a href="http://code.google.com/p/ff-cckwizard/">Google Code</a>. Please feel free to open up bugs there.
</p>
<p>
Going forward, I&#8217;m going to add the ability to do more locking down of functionality in Firefox. If you have specific needs, please open bugs in Google Code.
</p>
<p>
To close this post out, I want to answer a couple questions about CCK Wizard that are asked a lot.
</p>
<h3>What is the right way to install the CCK?</h3>
<p>
There are multiple ways the CCK can be installed based on your needs. I&#8217;ll go through all those ways.</p>
<p><b>Standard install</b> &#8211; The XPI that is created by the CCK Wizard is just a Firefox extension, so as such it can be placed on a web page and users can simply click to install. You can get more information on how to do this from the <a href="https://developer.mozilla.org/en/Installing_Extensions_and_Themes_From_Web_Pages">Mozilla developer center</a>.
</p>
<p><b>In the Firefox directory</b> &#8211; Extensions can be installed directly into the Firefox directory. Inside of the directory where the Firefox executable is located, there is a directory called extensions. Inside this directory, you can create a directory with the same ID as your CCK and then unzip your CCK into that directory. This is the only location where you can hide the add-on.
</p>
<p><b>As part of a Firefox install</b> &#8211; I&#8217;ve previously documented <a href="http://kaply.com/weblog/2007/03/20/deploying-firefox-2-within-the-enterprise-part-3/">how to bundle the CCK in the installer</a> and <a href="http://kaply.com/weblog/2007/07/27/manually-repackaging-the-firefox-installer-on-windows/">how to package the installer on Windows</a>. These instructions still hold true.
</p>
<p><b>Globally</b> &#8211; There are designated locations in different operating systems where extensions can be installed and they are picked up by Firefox. You can get more information on these locations at the <a href="https://developer.mozilla.org/en/Installing_extensions">Mozilla Developer Center</a>. This involves unzipping the CCK package in a specific location on the users hard drive into a directory that is named the same as the ID of the CCK. Using this method, you can manage the CCK package centrally and the user cannot uninstall the CCK from Firefox.
</p>
<p><b>Via the Windows Registry</b> &#8211; If you are on Windows, extensions can be installed via the Windows registry. This is documented at the <a href="https://developer.mozilla.org/en/Adding_Extensions_using_the_Windows_Registry">Mozilla Developer Center</a>. This involves unzipping the CCK package that you created to a central location and then adding a registry key that tells Firefox where to find the CCK. Using this method, you can manage the CCK package centrally and the user cannot uninstall the CCK from Firefox.
</p>
<h3>What do the options &#8220;Do not show this extension in the extension manager&#8221; and &#8220;Prevent the uninstall of this extension&#8221; do? They don&#8217;t seem to work for me.</h3>
<p>
These options only work if your CCK is located in the extensions directory where the Firefox executable is located.
</p>
<p>
If you have any more questions, feel free to ask in the comments.
</p>
</p>
<p>
<h5><em>Do you need to do even more customization of Firefox for your organization? That&#8217;s what we do. Contact <a href="http://consulting.kaply.com">Kaply Consulting</a>.</em></h5></p>
]]></content:encoded>
			<wfw:commentRss>http://kaply.com/weblog/2010/03/03/cck-wizard-update-and-faqs/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>CCK Wizard Status</title>
		<link>http://kaply.com/weblog/2010/01/28/cck-wizard-status/</link>
		<comments>http://kaply.com/weblog/2010/01/28/cck-wizard-status/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 14:25:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[cck]]></category>
		<category><![CDATA[enterprise]]></category>

		<guid isPermaLink="false">http://kaply.com/weblog/?p=418</guid>
		<description><![CDATA[With the release of Firefox 3.6, people are already asking me about a new CCK Wizard. I am working on an update. You can get a beta of that here. Primary changes are more information on the proxy page, ability &#8230; <a href="http://kaply.com/weblog/2010/01/28/cck-wizard-status/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>
With the release of Firefox 3.6, people are already asking me about a new <a href="https://addons.mozilla.org/en-US/firefox/addon/2553">CCK Wizard</a>. I am working on an update. You can get a beta of that <a href="http://kaply.com/cck/cckwizard-1.2.5.2b4.xpi">here</a>. Primary changes are more information on the proxy page, ability to open an existing CCK and better coexistence of multiple CCKs.
</p>
<p>
Most interesting news on the CCK front is that I&#8217;ve decided to move it to Google Code instead of maintaining in the Mozilla trees. The URL is <a href="http://code.google.com/p/ff-cckwizard/">http://code.google.com/p/ff-cckwizard/</a>. My primary reason for doing this is honestly that I&#8217;m not really contributing to Mozilla/Firefox proper anymore and messing with Mercurial isn&#8217;t worth it for me (I know, lame excuse.) It has some other advantages, though, like having my own bug reporting system and not having to get any reviews/approvals for checkins.
</p>
<p>
So if you have ideas/suggestions/bugs for the CCK Wizard, please open them in Google Code.
</p>
<p>
 Also note that CCK Wizard is something I do on the side, so my time is limited. <a href="https://addons.mozilla.org/en-US/firefox/addon/2553/about">Contributions help</a>. I know there are a lot of folks who depend on this for the business. Any and all love is appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://kaply.com/weblog/2010/01/28/cck-wizard-status/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>I Couldn&#039;t Stay Away From the CCK</title>
		<link>http://kaply.com/weblog/2009/02/11/i-couldnt-stay-away-from-the-cck/</link>
		<comments>http://kaply.com/weblog/2009/02/11/i-couldnt-stay-away-from-the-cck/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 16:25:30 +0000</pubDate>
		<dc:creator>mkaply</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[cck]]></category>
		<category><![CDATA[enterprise]]></category>

		<guid isPermaLink="false">http://www.kaply.com/weblog/?p=249</guid>
		<description><![CDATA[So it just so happens that some of the work I&#8217;m doing before I leave IBM involves the CCK, so I ended up working on it and fixing some bugs. In addition, a company asked for a feature that was &#8230; <a href="http://kaply.com/weblog/2009/02/11/i-couldnt-stay-away-from-the-cck/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>
So it just so happens that some of the work I&#8217;m doing before I leave IBM involves the CCK, so I ended up working on it and fixing some bugs. In addition, a company asked for a feature that was pretty easy to implement. So here for your testing pleasure is:
</p>
<p>
<a href="http://www.kaply.com/consulting/cckwizard-1.2.5.xpi">CCK Wizard version 1.2.5</a>
</p>
<p>
Here&#8217;s a summary of what&#8217;s changed:
<ul>
<li>Dropped support for Firefox 2</li>
<li>Added support for specifying sites where cookies are always allowed</li>
<li>Added support for specifying sites to deny popups/installs/cookies</li>
<li>Rewrote CCKService XPCOM Component to be a little cleaner
<li>Fixed problem where sometimes a created CCK wouldn&#8217;t install (ZIP path problem)</li>
<li>Fixed problem where sometimes bookmarks weren&#8217;t created on first load</li>
<li>Fixed problem where bookmarks weren&#8217;t created in the same order as specified in the CCK Wizard</li>
<li>Made the additional help menu look better on Mac
</ul>
</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://kaply.com/weblog/2009/02/11/i-couldnt-stay-away-from-the-cck/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>CCK Wizard 1.2 Finally Available</title>
		<link>http://kaply.com/weblog/2009/01/16/cck-wizard-12-finally-available/</link>
		<comments>http://kaply.com/weblog/2009/01/16/cck-wizard-12-finally-available/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 20:49:29 +0000</pubDate>
		<dc:creator>mkaply</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[cck]]></category>
		<category><![CDATA[enterprise]]></category>

		<guid isPermaLink="false">http://www.kaply.com/weblog/?p=224</guid>
		<description><![CDATA[The CCK Wizard for Firefox 3 is finally available. I had been holding off trying to get some translation work but finally gave up. You can get it from amo: CCK Wizard 1.2 Enjoy!]]></description>
			<content:encoded><![CDATA[<p>
The CCK Wizard for Firefox 3 is finally available. I had been holding off trying to get some translation work but finally gave up. You can get it from amo:
</p>
<p>
<a href="https://addons.mozilla.org/firefox/addon/2553">CCK Wizard 1.2</a>
</p>
<p>
Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://kaply.com/weblog/2009/01/16/cck-wizard-12-finally-available/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Customizing Firefox with the CCK Wizard</title>
		<link>http://kaply.com/weblog/2008/06/11/customizing-firefox-with-the-cck-wizard/</link>
		<comments>http://kaply.com/weblog/2008/06/11/customizing-firefox-with-the-cck-wizard/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 18:13:09 +0000</pubDate>
		<dc:creator>mkaply</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[cck]]></category>
		<category><![CDATA[enterprise]]></category>

		<guid isPermaLink="false">http://www.kaply.com/weblog/?p=152</guid>
		<description><![CDATA[New version with fix for search engines not working. FYI, I&#8217;m making a beta of the CCK Wizard available today for Firefox 3. If you are deploying Firefox in your enterprise, educational institution, or even your household, you&#8217;ll want to &#8230; <a href="http://kaply.com/weblog/2008/06/11/customizing-firefox-with-the-cck-wizard/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>
<strong>New version with fix for search engines not working.</strong>
</p>
<p>
FYI, <a href="http://www.kaply.com/operator/cckwizard-1.2b2.xpi"> I&#8217;m making a beta of the CCK Wizard available today for Firefox 3.</a>
</p>
<p>
If you are deploying Firefox in your enterprise, educational institution, or even your household, you&#8217;ll want to check out the <a href="http://www.mozilla.org/projects/cck/firefox/">CCK Wizard</a> (info at that link is a little dated right now).The CCK Wizard is an implementation of the old <a href="http://wp.netscape.com/browsers/6/cck/">Netscape CCK</a> that allows you to customize various aspects of Firefox and then contain all of those customizations in a single Firefox extension. Here are some of the things you can do</p>
<ul>
<li>Add an identifier to the user agent string</li>
<li>Change the default home page and startup override home page</li>
<li>Change the title bar text</li>
<li>Change the animated logo</li>
<li>Add a web page and tooltip used for the animated logo</li>
<li>Add a help menu item that links to a web page</li>
<li>Provide sites for which popups and XPInstalls are allowed by default</li>
<li>Preinstall browser plug-ins</li>
<li>Preinstall search engines</li>
<li>Change the default search engine</li>
<li>Add folders, bookmarks and live bookmarks to the personal toolbar</li>
<li>Add folders, bookmarks and live bookmarks to the bookmarks folder</li>
<li>Set default preferences</li>
<li>Lock preferences</li>
<li>Add registry keys (Windows only)</li>
<li>Add certificates (See NOTE below)</li>
<li>Set default proxy configurations</li>
<li>Package other XPIs with your distribution</li>
<li>Disable about:config</li>
</ul>
<p>
Note that if you customize Firefox using the CCK Wizard, there are certain restrictions on redistribution outside of your organization, especially if you add certificates. Read the <a href="http://www.mozilla.org/foundation/trademarks/">Mozilla Foundation Trademark policies</a> for more info, or contact licensing@mozilla.org.
</p>
<p>
And please let me know if you find any bugs.</p>
]]></content:encoded>
			<wfw:commentRss>http://kaply.com/weblog/2008/06/11/customizing-firefox-with-the-cck-wizard/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Simple Firefox Customizations: What Else Can I Do?</title>
		<link>http://kaply.com/weblog/2008/01/21/simple-firefox-customizations-what-else-can-i-do/</link>
		<comments>http://kaply.com/weblog/2008/01/21/simple-firefox-customizations-what-else-can-i-do/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 20:40:19 +0000</pubDate>
		<dc:creator>mkaply</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[cck]]></category>
		<category><![CDATA[enterprise]]></category>
		<category><![CDATA[extensions]]></category>

		<guid isPermaLink="false">http://www.kaply.com/weblog/2008/01/21/simple-firefox-customizations-what-else-can-i-do/</guid>
		<description><![CDATA[Before we get started on this next topic, I need to make one correction. In earlier posts, I said to use collapsed="true" to hide XUL menuitems. A better option is to use hidden="true" instead. Using collapsed doesn&#8217;t hide the margins, &#8230; <a href="http://kaply.com/weblog/2008/01/21/simple-firefox-customizations-what-else-can-i-do/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>
Before we get started on this next topic, I need to make one correction. In earlier posts, I said to use <code>collapsed="true"</code> to hide XUL menuitems. A better option is to use <code>hidden="true"</code> instead. Using collapsed doesn&#8217;t hide the margins, so you get a lot of whitespace in your menus.
</p>
<p>
I also mentioned customizing the toolbar in my last post. We&#8217;ll actually save that for a future post.
</p>
<p>
Now that we&#8217;ve seen how to create XUL overlays to modify menus, let&#8217;s try out a real world scenario to see what else we might need to do. Let&#8217;s say we want to remove the user&#8217;s access to &#8220;Full Screen&#8221; mode. (I have no idea why you would ever want to do this, but Microsoft provides it as a customization in their group policy, so someone must want it.) Removing the menu is the easy part. We look in the file <a href="http://lxr.mozilla.org/mozilla1.8/source/browser/base/content/browser-menubar.inc">browser-menubar.inc</a> and see that the ID of the menu is fullScreenItem. So by adding this code to our overlay: <code><br />
<menuitem id="fullScreenItem" hidden="true"/></code>we make the menu go away.
</p>
<p>
But we have a problem. The user could also press F11 to use &#8220;Full Screen&#8221; mode. How do we stop that? Luckily key commands are also defined in XUL, so we can modify those. Most key commands are defined in the file <a href="http://lxr.mozilla.org/mozilla1.8/source/browser/base/content/browser-sets.inc">browser-sets.inc</a>. Searching through this file, we find:<code><key id="key_fullScreen" keycode="VK_F11" command="View:FullScreen"/></code> By simply adding this line to our overlay:<code><key id="key_fullScreen" command=""/></code>we prevent the keystroke from working.
</p>
<p>
That was an easy one. Let&#8217;s try something harder. Let&#8217;s remove access to &#8220;View Source.&#8221; View Source can be accessed three different ways, the View menu, the keystroke Ctrl+U, and View Page Source on the page&#8217;s context menu. Let&#8217;s remove all three. We already learned how to remove the keystroke:<code><key id="key_viewSource" command=""/></code> What about the context menu? Removing items from the context menu can be done exactly the same way as removing items from any other menu &#8211; with hidden. The question is where do we get the IDs for items on the context menu. Similar to the main main and they keystrokes, it is stored it its own file, <a href="http://lxr.mozilla.org/mozilla1.8/source/browser/base/content/browser-context.inc">browser-context.inc</a>. Here we see that the ID for the view source item on the context menu is context-viewsource so we can just add <code><br />
<menuitem id="context-viewsource" hidden="true"/></code> to our overlay. OK, one last thing. Let&#8217;s remove the actual View Source menuitem. Looking in <a href="http://lxr.mozilla.org/mozilla1.8/source/browser/base/content/browser-menubar.inc">browser-menubar.inc</a> we see:<code><br />
<menuitem accesskey="&#038;pageSourceCmd.accesskey;" label="&#038;pageSourceCmd.label;" key="key_viewSource" command="View:PageSource"/></code> Wait a minute. This menuitem has no ID? How can we hide it? Luckily we can put JavaScript into our XUL overlay as well. In cases where we don&#8217;t have an ID, we have to write custom JavaScript to do our work. Here&#8217;s some code that hides the View Source menuitem:
<pre><code><script type="application/x-javascript;version=1.7">
  <![CDATA[
    for(let i=document.getElementById("menu_viewPopup").childNodes.length - 1; i>=0; i--) {
      if (document.getElementById("menu_viewPopup").childNodes.item(i).getAttribute("command") == "View:PageSource") {
        document.getElementById("menu_viewPopup").childNodes.item(i).hidden = true;
        break;
      }
    }
  ]]&gt;
</script>
</code>
</pre>
<p>This code uses JavaScript to find the View Source menuitem and explicitly hide it. It does that by getting the length of the View menu popup (the number of items on it), and traversing backwards through the menuietems until it find the View Source menu. Then it explicitly sets the hidden attribute on the View Source menu. The reason we know this is the View Source menu is because we were able to look in the browser-menubar.inc to see other properties that are only set on that menu (command=&#8221;View:PageSource&#8221;).
</p>
<p>
So now you should have most of the tools in your toolbox to remove functionality from the Firefox menus using the CCK to create the XUL overlay.</p>
]]></content:encoded>
			<wfw:commentRss>http://kaply.com/weblog/2008/01/21/simple-firefox-customizations-what-else-can-i-do/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Simple Firefox Customizations: What Can I Change?</title>
		<link>http://kaply.com/weblog/2008/01/15/simple-firefox-customizations-what-can-i-change/</link>
		<comments>http://kaply.com/weblog/2008/01/15/simple-firefox-customizations-what-can-i-change/#comments</comments>
		<pubDate>Tue, 15 Jan 2008 19:13:11 +0000</pubDate>
		<dc:creator>mkaply</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[cck]]></category>
		<category><![CDATA[enterprise]]></category>

		<guid isPermaLink="false">http://www.kaply.com/weblog/2008/01/15/simple-firefox-customizations-what-can-i-change/</guid>
		<description><![CDATA[Now that we know where to add our XUL changes in a CCK XPI, let&#8217;s take a look at what we can change. You&#8217;ll remember from the previous post, we added this line: and we were able to disable the &#8230; <a href="http://kaply.com/weblog/2008/01/15/simple-firefox-customizations-what-can-i-change/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>
Now that we know <a href="http://www.kaply.com/weblog/2008/01/07/simple-firefox-customizations-using-the-cck-xpi/">where to add our XUL changes in a CCK XPI</a>, let&#8217;s take a look at what we can change. You&#8217;ll remember from the previous post, we added this line:<br />
<code></p>
<menuitem id="menu_preferences" disabled="true"/></code>and we were able to disable the <strong>Options&#8230;</strong> menuitem. The obvious questions then are, what else can I do and how do I find out what things I can change.
</p>
<p>
First let&#8217;s talk about what you can change. It&#8217;s beyond the scope of this article to go into all the things you can change with XUL. If you want to learn more about XUL, you can check out <a href="http://www.xulplanet.com/">XULPlanet</a>. For enterprise customization, there are probably two main things we would want to do: disable something or make it go away. We already know how to do disabling, but how would we make the <strong>Options&#8230;</strong> menuitem go away? The answer is the collapsed attribute:<br />
<code></p>
<menuitem id="menu_preferences" collapsed="true"/>
</code>This will make the menuitem go away completely.
</p>
<p>
OK, so we know how to change the XUL, let&#8217;s find out what we can change. You&#8217;ll notice that in order to change the menuitem, we needed to know the ID of the menuitem. So how can we find the ID of what we want to change? For this, we need to understand a little more about how the Firefox UI works. Most of the main Firefox window&#8217;s UI is contained in a file called <a href="http://lxr.mozilla.org/mozilla1.8/source/browser/base/content/browser.xul">browser.xul</a>. By looking through this file, we can find various parts of the UI and use our knowledge of overlays to change them. For instance, looking through that file, we find out that the ID of the toolbar is <em>toolbar-menubar</em>. So if we wanted to make the menu go away, we could simply add:<br />
<code><br />
<toolbar id="toolbar-menubar" collapsed="true"/><br />
</code>Note that not only did we need to use the ID, but we had to use the name of the tag (toolbar) as well. You&#8217;ll notice that the menu is not in browser.xul (you won&#8217;t find menu_preferences, for instance). This is because the menu is contained in a separate file called <a href="http://lxr.mozilla.org/mozilla1.8/source/browser/base/content/browser-menubar.inc">browser-menubar.inc</a>. You can consider this file to be a part of browser.xul for our purposes.
</p>
<p>
If you&#8217;re having trouble finding some UI in the XUL file, try this. Go to the <a href="http://lxr.mozilla.org/mozilla1.8/">Mozilla 1.8 Cross-Reference</a> and search on the text you are trying to find. For instance, we&#8217;ll search on &#8220;Error Console.&#8221; This will return a DTD file that contains the string for the menu item (we want the one that begins with browser). On the same line as the text, you&#8217;ll see an identifier that usually ends in label. For the error console, it&#8217;s<br />
<code><br />
<!ENTITY errorConsoleCmd.label "Error Console"><br />
</code>By searching on the label, we can find the exact place where it is used in Firefox. In this case, it points us to <a href="http://lxr.mozilla.org/mozilla1.8/source/browser/base/content/browser-menubar.inc#527">browser-menubar.inc</a>. We can use the information there to create an overlay that disables or removes the <strong>Error Console</strong> menuitem.
</p>
<p>
In the next installment, we&#8217;ll learn how to customize the default buttons on the toolbar.</p>
]]></content:encoded>
			<wfw:commentRss>http://kaply.com/weblog/2008/01/15/simple-firefox-customizations-what-can-i-change/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Firefox Enterprise Article in Computerworld</title>
		<link>http://kaply.com/weblog/2008/01/11/firefox-enterprise-article-in-computerworld/</link>
		<comments>http://kaply.com/weblog/2008/01/11/firefox-enterprise-article-in-computerworld/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 16:46:51 +0000</pubDate>
		<dc:creator>mkaply</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[cck]]></category>
		<category><![CDATA[enterprise]]></category>

		<guid isPermaLink="false">http://www.kaply.com/weblog/2008/01/11/firefox-enterprise-article-in-computerworld/</guid>
		<description><![CDATA[Computerworld has an article out today about Firefox in the enterprise that contains some quotes from me. There&#8217;s also some slashdot discussion, but most of that seems to be from people who don&#8217;t really understand enterprise requirements. Unfortunately I didn&#8217;t &#8230; <a href="http://kaply.com/weblog/2008/01/11/firefox-enterprise-article-in-computerworld/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>
<a href="http://www.computerworld.com/action/article.do?command=viewArticleBasic&#038;articleId=9056780&#038;intsrc=hm_ts_head">Computerworld has an article out today about Firefox in the enterprise</a> that contains some quotes from me. There&#8217;s also some <a href="http://it.slashdot.org/article.pl?sid=08/01/11/0913207">slashdot discussion</a>, but most of that seems to be from people who don&#8217;t really understand enterprise requirements.
</p>
<p>
Unfortunately I didn&#8217;t respond quickly enough to the request for information, so my stuff is kind of tacked on to the end. Here&#8217;s the key message I wanted to get across (which wasn&#8217;t in the article):</p>
<blockquote><p>The main thing we think has changed at this point is that we (IBM) are working with the Mozilla Community to try to get the community more interested in the enterprise things. In particular, we (the community, as well as IBM) want to help enterprises with customization and deployment of Firefox, as well as work to figure out what can make Firefox better for the enterprise.</p></blockquote>
<p>
I agree with the overall article though. More needs to be done to make Firefox enterprise ready. Hopefully anyone who wants to help with that effort will <a href="http://www.kaply.com/weblog/2008/01/03/firefox-enterprise-newsgroup/">participate using the various avenues we have created</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kaply.com/weblog/2008/01/11/firefox-enterprise-article-in-computerworld/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
