Generating GUIDs

  • Revision slug: Generating_GUIDs
  • Revision title: Generating GUIDs
  • Revision id: 85418
  • Created:
  • Creator: NickolayBot
  • Is current revision? No
  • Comment Robot: Changing category Extensions:Articles

Revision Content

GUIDs are used in Mozilla programming for identifying several types of entities, including XPCOM Interfaces, components, and addons, like extensions and themes, although addons can also be identified with IDs of form <tt>extensionname@organization.tld</tt> since Firefox 1.5.

You can use a number of tools listed here to generate GUIDs.

Online tools

You can get GUID at the page of Shailesh N. Humbad Generate GUID Online. Another generator can be found at the homepage of family Kruithof - UUID (GUID) Generator on the WEB. Finally, you can usually get a GUID from one of the bots (such as botbot) on #mozilla IRC channel.

Windows

Windows users can use the GuidGen tool from Microsoft to obtain a GUID. (This tool is also part of MS Visual C++)

Linux

Use /usr/bin/uuidgen. This can be found in package libuuid1 (Debian).

Perl

jkeiser's Mozilla tools include a UUID generator with output format of both C++ and IDL style.

Revision Source

<p><b>GUID</b>s are used in Mozilla programming for identifying several types of entities, including XPCOM <a href="en/Interfaces">Interfaces</a>, components, and addons, like <a href="en/Extension">extensions</a> and <a href="en/Themes">themes</a>, although addons <a href="en/Install.rdf#id">can also be identified</a> with IDs of form <tt>extensionname@organization.tld</tt> since <a href="en/Firefox_1.5">Firefox 1.5</a>.
</p><p>You can use a number of tools listed here to generate GUIDs.
</p>
<h4 name="Online_tools">Online tools</h4>
<p>You can get GUID at the page of Shailesh N. Humbad <a class="external" href="http://www.somacon.com/p113.php">Generate GUID Online</a>. Another generator can be found at the homepage of family Kruithof - <a class="external" href="http://kruithof.xs4all.nl/uuid/uuidgen">UUID (GUID) Generator on the WEB</a>.  Finally, you can usually get a GUID from one of the bots (such as botbot) on <a class="external" href="irc://irc.mozilla.org/mozilla">#mozilla</a> IRC channel.
</p>
<h4 name="Windows">Windows</h4>
<p>Windows users can use the <a class="external" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=94551F58-484F-4A8C-BB39-ADB270833AFC&amp;displaylang=en">GuidGen</a> tool from Microsoft to obtain a GUID. (This tool is also part of MS Visual C++)
</p>
<h4 name="Linux">Linux</h4>
<p>Use <code>/usr/bin/uuidgen</code>. This can be found in package <code>libuuid1</code> (Debian).
</p>
<h4 name="Perl">Perl</h4>
<p><a class="external" href="http://www.johnkeiser.com/mozilla/mozilla_tools.html">jkeiser's Mozilla tools</a> include a UUID generator with output format of both C++ and IDL style.
</p>
Revert to this revision