summaryrefslogtreecommitdiff
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/installer/Makefile.in85
-rw-r--r--calendar/installer/check-remove-files.pl49
-rw-r--r--calendar/installer/moz.build5
-rw-r--r--calendar/installer/package-name.mk160
-rw-r--r--calendar/installer/removed-files.in436
-rw-r--r--calendar/installer/windows/Makefile.in86
-rw-r--r--calendar/installer/windows/app.tag4
-rw-r--r--calendar/installer/windows/moz.build5
-rw-r--r--calendar/installer/windows/nsis/defines.nsi.in32
-rw-r--r--calendar/installer/windows/nsis/installer.nsi744
-rw-r--r--calendar/installer/windows/nsis/shared.nsh160
-rw-r--r--calendar/installer/windows/nsis/uninstaller.nsi398
-rw-r--r--calendar/installer/windows/nsis/updater_append.ini16
-rw-r--r--calendar/installer/windows/packages-static362
-rw-r--r--calendar/lightning/Makefile.in37
-rw-r--r--calendar/lightning/lightning-packager.mk2
-rw-r--r--calendar/moz.build2
-rw-r--r--calendar/timezones/Makefile.in2
18 files changed, 165 insertions, 2420 deletions
diff --git a/calendar/installer/Makefile.in b/calendar/installer/Makefile.in
deleted file mode 100644
index b51ccb7cd..000000000
--- a/calendar/installer/Makefile.in
+++ /dev/null
@@ -1,85 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-DEPTH = @DEPTH@
-topsrcdir = @top_srcdir@
-srcdir = @srcdir@
-VPATH = @srcdir@
-
-include $(DEPTH)/config/autoconf.mk
-
-STANDALONE_MAKEFILE := 1
-
-NO_PKG_FILES = \
- sunbird-config \
- regchrome* \
- regxpcom* \
- xpcshell* \
- xpidl* \
- xpt_dump* \
- xpt_link* \
- nspr-config \
- $(NULL)
-
-include $(topsrcdir)/config/rules.mk
-
-MOZ_PKG_REMOVALS = $(srcdir)/removed-files.in
-
-ifdef BUILD_STATIC_LIBS
-ifeq (WINNT,$(OS_ARCH))
-MOZ_PKG_MANIFEST_P = $(srcdir)/windows/packages-static
-# XXX Enable when landing unix installer
-# else
-# ifneq (,$(filter-out OS2,$(OS_ARCH)))
-# MOZ_PKG_MANIFEST_P = $(srcdir)/unix/packages-static
-# endif
-endif
-else
-$(error you need a "--enable-static --disable-shared" build to create an installer)
-endif
-
-MOZ_NONLOCALIZED_PKG_LIST = \
- xpcom \
- calendar \
- $(NULL)
-
-MOZ_LOCALIZED_PKG_LIST = $(AB_CD)
-
-DEFINES += -DAB_CD=$(AB_CD)
-
-ifdef MOZ_UPDATER
-DEFINES += -DMOZ_UPDATER=1
-endif
-
-ifdef MOZ_PKG_MANIFEST_P
-MOZ_PKG_MANIFEST = packages-static
-
-$(MOZ_PKG_MANIFEST): $(MOZ_PKG_MANIFEST_P) $(GLOBAL_DEPS)
- $(PYTHON) $(MOZILLA_SRCDIR)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) $< > $@
-endif
-
-include $(MOZILLA_SRCDIR)/system/installer/packager.mk
-
-ifeq (WINNT,$(OS_ARCH))
-PKGCOMP_FIND_OPTS =
-else
-PKGCOMP_FIND_OPTS = -L
-endif
-
-package-compare::
-ifdef MOZ_PKG_MANIFEST_P
- cd $(DIST); find $(PKGCOMP_FIND_OPTS) bin -type f | sort > bin-list.txt
- grep "^bin" $(MOZ_PKG_MANIFEST) | sed -e 's/\\/\//g' | sort > $(DIST)/pack-list.txt
- -diff -u $(DIST)/pack-list.txt $(DIST)/bin-list.txt
-endif
-
-installer:
-ifdef INSTALLER_DIR
- $(MAKE) -C $(INSTALLER_DIR)
-endif
-
-make-package : removed-files-checked
-
-removed-files-checked : removed-files stage-package
- $(PERL) $(srcdir)/check-remove-files.pl removed-files $(DIST)/$(STAGEPATH)$(MOZ_PKG_DIR)$(_BINPATH)
diff --git a/calendar/installer/check-remove-files.pl b/calendar/installer/check-remove-files.pl
deleted file mode 100644
index 00aea4c49..000000000
--- a/calendar/installer/check-remove-files.pl
+++ /dev/null
@@ -1,49 +0,0 @@
-#!perl
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-usage() if $#ARGV != 1;
-
-# files to check but ignore...
-my @exceptions = ( "components/autocomplete.xpt" );
-
-my $filelist = $ARGV[0];
-open FILELIST,"$filelist" or die "can not open $filelist\n";
-my @rmfiles = <FILELIST>;
-close FILELIST or die "can not close $filelist\n";
-chomp @rmfilelist;
-
-my $startdir = $ARGV[1];
-
-die "no such directory: $startdir\n" if ! -d $startdir;
-
-my $probsfound = 0;
-my @foundlist = ();
-
-foreach my $onefile ( @rmfiles ) {
- my $ignore = 0;
- chomp $onefile;
- foreach my $ignoreme ( @exceptions ) {
- $ignore = 1 if "$onefile" eq "$ignoreme";
- }
- next if $ignore;
- if ( -f "$startdir/$onefile" ) {
-# print "found $startdir/$onefile\n";
- push @foundlist, "$startdir/$onefile\n";
- $probsfound = 1;
- }
-}
-
-if ( $probsfound ) {
- print STDERR "ERROR: files found that are listed in \"$filelist\" but exist in \"$startdir\":\n";
- print STDERR "@foundlist\n";
- exit 2;
-}
-
-sub usage
-{
- print STDERR "\nusage: $0 <remove-files list> <lookup dir>\n\n";
- exit 1;
-}
diff --git a/calendar/installer/moz.build b/calendar/installer/moz.build
deleted file mode 100644
index 58ce5e273..000000000
--- a/calendar/installer/moz.build
+++ /dev/null
@@ -1,5 +0,0 @@
-# vim: set filetype=python:
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
diff --git a/calendar/installer/package-name.mk b/calendar/installer/package-name.mk
new file mode 100644
index 000000000..c3a7ba364
--- /dev/null
+++ b/calendar/installer/package-name.mk
@@ -0,0 +1,160 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+# assemble package names, see convention at
+# http://developer.mozilla.org/index.php?title=En/Package_Filename_Convention
+# for (at least Firefox) releases we use a different format with directories,
+# e.g. win32/de/Firefox Setup 3.0.1.exe
+# the latter format is triggered with MOZ_PKG_PRETTYNAMES=1
+
+ifndef PACKAGE_NAME_MK_INCLUDED
+PACKAGE_NAME_MK_INCLUDED := 1
+
+ifndef MOZ_PKG_VERSION
+# Normally MOZ_PKG_VERSION is set to the application version
+MOZ_PKG_VERSION = $(MOZ_APP_VERSION)
+endif
+
+ifndef MOZ_PKG_PLATFORM
+MOZ_PKG_PLATFORM := $(TARGET_OS)-$(TARGET_CPU)
+
+# TARGET_OS/TARGET_CPU may be unintuitive, so we hardcode some special formats
+ifeq ($(OS_ARCH),WINNT)
+ifeq ($(TARGET_CPU),x86_64)
+MOZ_PKG_PLATFORM := win64
+else
+MOZ_PKG_PLATFORM := win32
+endif
+endif
+ifeq ($(OS_ARCH),Darwin)
+ifdef UNIVERSAL_BINARY
+MOZ_PKG_PLATFORM := mac
+else
+ifeq ($(TARGET_CPU),x86_64)
+MOZ_PKG_PLATFORM := mac64
+else
+MOZ_PKG_PLATFORM := mac
+endif
+endif
+endif
+ifeq ($(TARGET_OS),linux-gnu)
+MOZ_PKG_PLATFORM := linux-$(TARGET_CPU)
+endif
+endif #MOZ_PKG_PLATFORM
+
+ifdef MOZ_PKG_SPECIAL
+MOZ_PKG_PLATFORM := $(MOZ_PKG_PLATFORM)-$(MOZ_PKG_SPECIAL)
+endif
+
+MOZ_PKG_DIR = $(MOZ_APP_NAME)
+
+ifndef MOZ_PKG_PRETTYNAMES # standard package names
+
+ifndef MOZ_PKG_APPNAME
+MOZ_PKG_APPNAME = $(MOZ_APP_NAME)
+endif
+
+ifdef MOZ_SIMPLE_PACKAGE_NAME
+PKG_BASENAME := $(MOZ_SIMPLE_PACKAGE_NAME)
+else
+PKG_BASENAME = $(MOZ_PKG_APPNAME)-$(MOZ_PKG_VERSION).$(MOZ_PKG_PLATFORM)
+endif
+PKG_PATH =
+SDK_PATH =
+PKG_INST_BASENAME = $(PKG_BASENAME).installer
+PKG_STUB_BASENAME = $(PKG_BASENAME).installer-stub
+PKG_INST_PATH = $(PKG_PATH)
+PKG_UPDATE_BASENAME = $(PKG_BASENAME)
+CHECKSUMS_FILE_BASENAME = $(PKG_BASENAME)
+MOZ_INFO_BASENAME = $(PKG_BASENAME)
+PKG_UPDATE_PATH = $(PKG_PATH)
+COMPLETE_MAR = $(PKG_UPDATE_PATH)$(PKG_UPDATE_BASENAME).complete.mar
+# PARTIAL_MAR needs to be processed by $(wildcard) before you use it.
+PARTIAL_MAR = $(PKG_UPDATE_PATH)$(PKG_UPDATE_BASENAME).partial.*.mar
+PKG_LANGPACK_BASENAME = $(MOZ_PKG_APPNAME)-$(MOZ_PKG_VERSION).$(AB_CD).langpack
+PKG_LANGPACK_PATH = $(MOZ_PKG_PLATFORM)/xpi/
+LANGPACK = $(PKG_LANGPACK_PATH)$(PKG_LANGPACK_BASENAME).xpi
+PKG_SRCPACK_BASENAME = $(MOZ_PKG_APPNAME)-$(MOZ_PKG_VERSION).source
+PKG_BUNDLE_BASENAME = $(MOZ_PKG_APPNAME)-$(MOZ_PKG_VERSION)
+PKG_SRCPACK_PATH =
+
+else # "pretty" release package names
+
+ifndef MOZ_PKG_APPNAME
+MOZ_PKG_APPNAME = $(MOZ_APP_DISPLAYNAME)
+endif
+MOZ_PKG_APPNAME_LC = $(shell echo $(MOZ_PKG_APPNAME) | tr '[A-Z]' '[a-z]')
+
+ifndef MOZ_PKG_LONGVERSION
+MOZ_PKG_LONGVERSION = $(MOZ_PKG_VERSION)
+endif
+
+ifeq (,$(filter-out Darwin, $(OS_ARCH))) # Mac
+PKG_BASENAME = $(MOZ_PKG_APPNAME) $(MOZ_PKG_LONGVERSION)
+PKG_INST_BASENAME = $(MOZ_PKG_APPNAME) Setup $(MOZ_PKG_LONGVERSION)
+else
+ifeq (,$(filter-out WINNT, $(OS_ARCH))) # Windows
+PKG_BASENAME = $(MOZ_PKG_APPNAME_LC)-$(MOZ_PKG_VERSION)
+PKG_INST_BASENAME = $(MOZ_PKG_APPNAME) Setup $(MOZ_PKG_LONGVERSION)
+PKG_STUB_BASENAME = $(MOZ_PKG_APPNAME) Setup Stub $(MOZ_PKG_LONGVERSION)
+else # unix (actually, not Windows, Mac or OS/2)
+PKG_BASENAME = $(MOZ_PKG_APPNAME_LC)-$(MOZ_PKG_VERSION)
+PKG_INST_BASENAME = $(MOZ_PKG_APPNAME_LC)-setup-$(MOZ_PKG_VERSION)
+endif
+endif
+PKG_PATH = $(MOZ_PKG_PLATFORM)/$(AB_CD)/
+SDK_PATH = $(PKG_PATH)/sdk/
+CHECKSUMS_FILE_BASENAME = $(MOZ_PKG_APPNAME_LC)-$(MOZ_PKG_VERSION)
+MOZ_INFO_BASENAME = $(MOZ_PKG_APPNAME_LC)-$(MOZ_PKG_VERSION)
+PKG_INST_PATH = $(PKG_PATH)
+PKG_UPDATE_BASENAME = $(MOZ_PKG_APPNAME_LC)-$(MOZ_PKG_VERSION)
+PKG_UPDATE_PATH = update/$(PKG_PATH)
+COMPLETE_MAR = $(PKG_UPDATE_PATH)$(PKG_UPDATE_BASENAME).complete.mar
+# PARTIAL_MAR needs to be processed by $(wildcard) before you use it.
+PARTIAL_MAR = $(PKG_UPDATE_PATH)$(PKG_UPDATE_BASENAME).partial.*.mar
+PKG_LANGPACK_BASENAME = $(AB_CD)
+PKG_LANGPACK_PATH = $(MOZ_PKG_PLATFORM)/xpi/
+LANGPACK = $(PKG_LANGPACK_PATH)$(PKG_LANGPACK_BASENAME).xpi
+PKG_SRCPACK_BASENAME = $(MOZ_PKG_APPNAME_LC)-$(MOZ_PKG_VERSION).source
+PKG_BUNDLE_BASENAME = $(MOZ_PKG_APPNAME_LC)-$(MOZ_PKG_VERSION)
+PKG_SRCPACK_PATH = source/
+
+endif # MOZ_PKG_PRETTYNAMES
+
+# Symbol package naming
+SYMBOL_FULL_ARCHIVE_BASENAME = $(PKG_BASENAME).crashreporter-symbols-full
+SYMBOL_ARCHIVE_BASENAME = $(PKG_BASENAME).crashreporter-symbols
+
+# Code coverage package naming
+CODE_COVERAGE_ARCHIVE_BASENAME = $(PKG_BASENAME).code-coverage-gcno
+
+# Test package naming
+TEST_PACKAGE = $(PKG_BASENAME).common.tests.zip
+CPP_TEST_PACKAGE = $(PKG_BASENAME).cppunittest.tests.zip
+XPC_TEST_PACKAGE = $(PKG_BASENAME).xpcshell.tests.zip
+MOCHITEST_PACKAGE = $(PKG_BASENAME).mochitest.tests.zip
+REFTEST_PACKAGE = $(PKG_BASENAME).reftest.tests.zip
+WP_TEST_PACKAGE = $(PKG_BASENAME).web-platform.tests.zip
+TALOS_PACKAGE = $(PKG_BASENAME).talos.tests.zip
+GTEST_PACKAGE = $(PKG_BASENAME).gtest.tests.zip
+
+ifneq (,$(wildcard $(DIST)/bin/application.ini))
+BUILDID = $(shell $(PYTHON) $(MOZILLA_DIR)/config/printconfigsetting.py $(DIST)/bin/application.ini App BuildID)
+else
+BUILDID = $(shell $(PYTHON) $(MOZILLA_DIR)/config/printconfigsetting.py $(DIST)/bin/platform.ini Build BuildID)
+endif
+
+MOZ_SOURCESTAMP_FILE = $(DIST)/$(PKG_PATH)/$(MOZ_INFO_BASENAME).txt
+MOZ_BUILDINFO_FILE = $(DIST)/$(PKG_PATH)/$(MOZ_INFO_BASENAME).json
+MOZ_TEST_PACKAGES_FILE = $(DIST)/$(PKG_PATH)/$(PKG_BASENAME).test_packages.json
+
+# JavaScript Shell
+ifdef MOZ_SIMPLE_PACKAGE_NAME
+JSSHELL_NAME := $(MOZ_SIMPLE_PACKAGE_NAME).jsshell.zip
+else
+JSSHELL_NAME = jsshell-$(MOZ_PKG_PLATFORM).zip
+endif
+PKG_JSSHELL = $(DIST)/$(JSSHELL_NAME)
+
+endif # PACKAGE_NAME_MK_INCLUDED
diff --git a/calendar/installer/removed-files.in b/calendar/installer/removed-files.in
deleted file mode 100644
index f37327f67..000000000
--- a/calendar/installer/removed-files.in
+++ /dev/null
@@ -1,436 +0,0 @@
-# These files are removed when upgrading over a previous installation.
-# This allows us to remove outdated cruft, and ensure that we are using the
-# newly installed version of critical components.
-chrome/US.jar
-chrome/en-win.jar
-chrome/chrome.rdf
-chrome/installed-chrome.txt
-chrome/app-chrome.manifest
-defaults/pref/all.js
-# Extensions no longer live in defaults/profile
-# {8af2d0a7-e394-4de2-ae55-2dae532a7a9b} = previous uuid of Sunbird default theme
-defaults/profile/extensions/{8af2d0a7-e394-4de2-ae55-2dae532a7a9b}/install.rdf
-defaults/profile/extensions/{8af2d0a7-e394-4de2-ae55-2dae532a7a9b}/
-# {972ce4c6-7e08-4474-a285-3208198ce6fd} = uuid of toolkit app default theme
-defaults/profile/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/install.rdf
-defaults/profile/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/
-defaults/profile/extensions/Extensions.rdf
-defaults/profile/extensions/installed-extensions.txt
-defaults/profile/extensions/
-defaults/profile/US/
-# {641d8d09-7dda-4850-8228-ac0ab65e2ac9} = DOM Inspector
-extensions/{641d8d09-7dda-4850-8228-ac0ab65e2ac9}/install.rdf
-extensions/{641d8d09-7dda-4850-8228-ac0ab65e2ac9}/
-greprefs/all.js
-greprefs/security-prefs.js
-greprefs/xpinstall.js
-greprefs/
-components/component.reg
-components/compreg.dat
-components/xpti.dat
-components/xptitemp.dat
-components/nsBackgroundUpdateService.js
-components/nsCloseAllWindows.js
-#
-# Clean out old calendar components which didn't implement nsIModule
-# (see bug 320366)
-components/calAlarmService.js
-components/calAttachment.js
-components/calAttendee.js
-components/calCalendarManager.js
-components/calDateTimeFormatter.js
-components/calEvent.js
-components/calHtmlExport.js
-components/calIcsImportExport.js
-components/calItemBase.js
-components/calListFormatter.js
-components/calMonthGridPrinter.js
-components/calOutlookCSVImportExport.js
-components/calRecurrenceInfo.js
-components/calTodo.js
-components/calUtils.js
-components/calWeekTitleService.js
-#
-#ifdef XP_WIN
-#
-# Clean out obsolete files from Sunbird 0.2 installer
-#
-chrome/overlayinfo/
-chrome/calendar-ca-AD.jar
-chrome/calendar-cs-CZ.jar
-chrome/calendar-cy-GB.jar
-chrome/calendar-de-AT.jar
-chrome/calendar-fr-FR.jar
-chrome/calendar-hu-HU.jar
-chrome/calendar-it-IT.jar
-chrome/calendar-ja-JP.jar
-chrome/calendar-lt-LT.jar
-chrome/calendar-nl-NL.jar
-chrome/calendar-pl-PL.jar
-chrome/calendar-sk-SK.jar
-chrome/calendar-sl-SI.jar
-chrome/calendar-tr-TR.jar
-chrome/calendar-wen-DE.jar
-chrome/help.jar
-chrome/pipnss.jar
-components/browser.xpt
-components/feedProcessor.js
-components/nsSetDefaultBrowser.js
-defaults/profile/mimeTypes.rdf
-extensions/{8af2d0a7-e394-4de2-ae55-2dae532a7a9b}/install.rdf
-extensions/{8af2d0a7-e394-4de2-ae55-2dae532a7a9b}/
-extensions/Extensions.rdf
-extensions/installed-extensions-processed.txt
-res/builtin/platformHTMLBindings.xml
-res/builtin/
-res/platform-forms.css
-components.ini
-#
-# Clean out obsolete files from Sunbird 0.3a1/0.3a2 installer
-#
-chrome/chromelist.txt
-components/@DLL_PREFIX@webdav@DLL_SUFFIX@
-components/accessibility-msaa.xpt
-components/accessibility.xpt
-components/alerts.xpt
-components/appshell.xpt
-components/appstartup.xpt
-components/autocomplete.xpt
-components/autoconfig.xpt
-components/bookmarks.xpt
-components/calbase.xpt
-components/calbaseinternal.xpt
-components/caps.xpt
-components/chardet.xpt
-components/chrome.xpt
-components/commandhandler.xpt
-components/commandlines.xpt
-components/composer.xpt
-components/content_base.xpt
-components/content_html.xpt
-components/content_htmldoc.xpt
-components/content_xmldoc.xpt
-components/content_xslt.xpt
-components/content_xtf.xpt
-components/docshell_base.xpt
-components/dom.xpt
-components/dom_base.xpt
-components/dom_canvas.xpt
-components/dom_core.xpt
-components/dom_css.xpt
-components/dom_events.xpt
-components/dom_html.xpt
-components/dom_offline.xpt
-components/dom_range.xpt
-components/dom_sidebar.xpt
-components/dom_stylesheets.xpt
-components/dom_svg.xpt
-components/dom_traversal.xpt
-components/dom_views.xpt
-components/dom_xbl.xpt
-components/dom_xpath.xpt
-components/dom_xul.xpt
-components/downloads.xpt
-components/editor.xpt
-components/embed_base.xpt
-components/extensions.xpt
-components/exthandler.xpt
-components/fastfind.xpt
-components/feeds.xpt
-components/find.xpt
-components/gfx.xpt
-components/gksvgrenderer.xpt
-components/history.xpt
-components/htmlparser.xpt
-components/imgicon.xpt
-components/imglib2.xpt
-components/intl.xpt
-components/intlcmpt.xpt
-components/jar.xpt
-components/jsconsole.xpt
-components/jsdservice.xpt
-components/layout_base.xpt
-components/layout_printing.xpt
-components/layout_xul.xpt
-components/layout_xul_tree.xpt
-components/locale.xpt
-components/lwbrk.xpt
-components/mimetype.xpt
-components/mozbrwsr.xpt
-components/mozfind.xpt
-components/necko.xpt
-components/necko_about.xpt
-components/necko_cache.xpt
-components/necko_cookie.xpt
-components/necko_data.xpt
-components/necko_dns.xpt
-components/necko_file.xpt
-components/necko_ftp.xpt
-components/necko_http.xpt
-components/necko_res.xpt
-components/necko_socket.xpt
-components/necko_strconv.xpt
-components/necko_viewsource.xpt
-components/nsSetDefaultMail.js
-components/nsUnsetDefaultMail.js
-components/oji.xpt
-components/passwordmgr.xpt
-components/pipboot.xpt
-components/pipnss.xpt
-components/pippki.xpt
-components/plugin.xpt
-components/pref.xpt
-components/prefetch.xpt
-components/profile.xpt
-components/progressDlg.xpt
-components/proxyObject.xpt
-components/rdf.xpt
-components/satchel.xpt
-components/saxparser.xpt
-components/shistory.xpt
-components/storage.xpt
-components/toolkitprofile.xpt
-components/txmgr.xpt
-components/txtsvc.xpt
-components/uconv.xpt
-components/unicharutil.xpt
-components/update.xpt
-components/uriloader.xpt
-components/webbrowserpersist.xpt
-components/webBrowser_core.xpt
-components/webdav.xpt
-components/webshell_idls.xpt
-components/websrvcs.xpt
-components/widget.xpt
-components/windowds.xpt
-components/windowwatcher.xpt
-components/winhooks.xpt
-components/xmlextras.xpt
-components/xpautocomplete.xpt
-components/xpcom_base.xpt
-components/xpcom_components.xpt
-components/xpcom_ds.xpt
-components/xpcom_io.xpt
-components/xpcom_obsolete.xpt
-components/xpcom_thread.xpt
-components/xpcom_xpti.xpt
-components/xpconnect.xpt
-components/xpinstall.xpt
-components/xulapp.xpt
-components/xuldoc.xpt
-components/xultmpl.xpt
-plugins/npnul32.dll
-res/dtd/mathml.dtd
-res/dtd/mathml20.properties
-res/entityTables/mathml20.properties
-res/fonts/mathfont.properties
-res/fonts/mathfontCMEX10.properties
-res/fonts/mathfontCMSY10.properties
-res/fonts/mathfontMath1.properties
-res/fonts/mathfontMath2.properties
-res/fonts/mathfontMath4.properties
-res/fonts/mathfontMTExtra.properties
-res/fonts/mathfontPUA.properties
-res/fonts/mathfontSymbol.properties
-res/html/gopher-audio.gif
-res/html/gopher-binary.gif
-res/html/gopher-find.gif
-res/html/gopher-image.gif
-res/html/gopher-menu.gif
-res/html/gopher-movie.gif
-res/html/gopher-sound.gif
-res/html/gopher-telnet.gif
-res/html/gopher-text.gif
-res/html/gopher-unknown.gif
-res/bloatcycle.html
-res/EditorOverride.css
-res/grabber.gif
-res/mathml.css
-res/table-add-column-after-active.gif
-res/table-add-column-after-hover.gif
-res/table-add-column-after.gif
-res/table-add-column-before-active.gif
-res/table-add-column-before-hover.gif
-res/table-add-column-before.gif
-res/table-add-row-after-active.gif
-res/table-add-row-after-hover.gif
-res/table-add-row-after.gif
-res/table-add-row-before-active.gif
-res/table-add-row-before-hover.gif
-res/table-add-row-before.gif
-res/table-remove-column-active.gif
-res/table-remove-column-hover.gif
-res/table-remove-column.gif
-res/table-remove-row-active.gif
-res/table-remove-row-hover.gif
-res/table-remove-row.gif
-res/viewer.properties
-dependentlibs.list
-mozctl.dll
-mozctlx.dll
-regxpcom.exe
-sunbird.url
-unins000.dat
-unins000.exe
-uninstall/UninstallSunbird.exe
-uninstall/uninst.exe
-xpcom_compat.dll
-components/nsInterfaceInfoToIDL.js
-xpcshell.exe
-xpidl.exe
-xpt_dump.exe
-xpt_link.exe
-#
-# Clean out obsolete files from Sunbird 0.5 installer
-#
-components/calAlarmService.js
-js/calWcapCachedCalendar.js
-#
-# Clean out obsolete files from Mozilla 1.9.1
-#
-components/nsPostUpdateWin.js
-#
-#endif
-#
-components/autocomplete.xpt
-@DLL_PREFIX@zlib@DLL_SUFFIX@
-extensions/inspector@mozilla.org/components/inspector.xpt
-extensions/inspector@mozilla.org/components/@DLL_PREFIX@inspector@DLL_SUFFIX@
-#
-#
-# Clean out obsolete Talkback files
-#
-extensions/talkback@mozilla.org/
-extensions/talkback@mozilla.org/install.rdf
-extensions/talkback@mozilla.org/chrome.manifest
-extensions/talkback@mozilla.org/components/qfaservices.xpt
-extensions/talkback@mozilla.org/components/@DLL_PREFIX@qfaservices@DLL_SUFFIX@
-#ifdef XP_WIN
-extensions/talkback@mozilla.org/components/BrandRes.dll
-extensions/talkback@mozilla.org/components/fullsoft.dll
-extensions/talkback@mozilla.org/components/master.ini
-extensions/talkback@mozilla.org/components/talkback-l10n.ini
-extensions/talkback@mozilla.org/components/talkback.cnt
-extensions/talkback@mozilla.org/components/talkback.exe
-extensions/talkback@mozilla.org/components/talkback.hlp
-extensions/talkback@mozilla.org/InstallDisabled
-#else
-extensions/talkback@mozilla.org/components/talkback/talkback
-extensions/talkback@mozilla.org/components/talkback/XTalkback.ad
-extensions/talkback@mozilla.org/components/master.ini
-extensions/talkback@mozilla.org/components/talkback.so
-#endif
-#
-# Clean out update service components if MOZ_UPDATER isn't defined
-#
-#ifndef MOZ_UPDATER
-components/nsUpdateService.js
-components/nsUpdateServiceStub.js
-#endif
-
-# bug 381049 (Moved crashreporter interface)
-components/crashreporter.xpt
-# bug 415330 (Remove XPInstall leftovers)
-@DLL_PREFIX@xpistub@DLL_SUFFIX@
-res/cmessage.txt
-#ifdef XP_WIN
-xpicleanup.exe
-#else
-xpicleanup
-#endif
-
-# bug 446366 (renamed interface)
-js/calWeekTitleService.js
-
-js/calItipProcessor.js
-
-# bug 431775 (remove unused gopher images)
-res/html/gopher-audio.gif
-res/html/gopher-binary.gif
-res/html/gopher-find.gif
-res/html/gopher-image.gif
-res/html/gopher-menu.gif
-res/html/gopher-movie.gif
-res/html/gopher-sound.gif
-res/html/gopher-telnet.gif
-res/html/gopher-text.gif
-res/html/gopher-unknown.gif
-
-# Bug 462393 - Sunbird tinderboxen busted [Error: mozilla/dist/bin/js: Not a directory]
-js/calAlarm.js
-js/calAlarmMonitor.js
-js/calAlarmService.js
-js/calAttachment.js
-js/calAttendee.js
-js/calAuthUtils.js
-js/calCachedCalendar.js
-js/calCalendarManager.js
-js/calCalendarSearchService.js
-js/calDateTimeFormatter.js
-js/calDavCalendar.js
-js/calEvent.js
-js/calFilter.js
-js/calFreeBusyService.js
-js/calHtmlExport.js
-js/calICSCalendar.js
-js/calIcsImportExport.js
-js/calIcsParser.js
-js/calIcsSerializer.js
-js/calItemBase.js
-js/calItipItem.js
-js/calItipProcessor.js
-js/calListFormatter.js
-js/calMemoryCalendar.js
-js/calMonthGridPrinter.js
-js/calOutlookCSVImportExport.js
-js/calProtocolHandler.js
-js/calProviderBase.js
-js/calProviderUtils.js
-js/calRecurrenceInfo.js
-js/calRelation.js
-js/calStorageCalendar.js
-js/calTimezoneService.js
-js/calTodo.js
-js/calTransactionManager.js
-js/calUtils.js
-js/calWcapCalendar.js
-js/calWcapCalendarItems.js
-js/calWcapErrors.js
-js/calWcapRequest.js
-js/calWcapSession.js
-js/calWcapUtils.js
-js/calWeekInfoService.js
-js/calWeekPrinter.js
-
-# Bug 462773 drop JSON.jsm
-modules/JSON.jsm
-
-# Bug 439620
-calendar-js/calProviderBase.js
-calendar-js/calProviderUtils.js
-calendar-js/calAuthUtils.js
-
-# Bug 420811 replace loading and broken image GIFs with PNGs
-res/broken-image.gif
-res/loading-image.gif
-
-#ifdef XP_WIN
-# Bug 504029
-js3250.dll
-#endif
-
-# Bug 534408 - Core bug 514665 dropped/replaced USE_SHORT_LIBNAME uses: port that to c-c (apps)
-#ifdef XP_WIN
-components/calbscmp.dll
-#endif
-
-components/contentprefs.xpt
-
-# Bug 522712 - Port |Bug 511761 - Only use compatibility.ini (not .autoreg, or stat()s) to invalidate fastloads and other caches| to comm-central (apps)
-.autoreg
-
-# Bug 576746 - new xpcom registration, we're cleaning up some extra files here
-components/calStorageCalendarModule.js
-components/calMemoryCalendarModule.js
-components/calICSCalendarModule.js
-components/dom_loadsave.xpt
diff --git a/calendar/installer/windows/Makefile.in b/calendar/installer/windows/Makefile.in
deleted file mode 100644
index 833a941e4..000000000
--- a/calendar/installer/windows/Makefile.in
+++ /dev/null
@@ -1,86 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-DEPTH = @DEPTH@
-topsrcdir = @top_srcdir@
-srcdir = @srcdir@
-VPATH = @srcdir@
-
-include $(DEPTH)/config/autoconf.mk
-
-include $(MOZILLA_SRCDIR)/system/installer/package-name.mk
-
-CONFIG_DIR = instgen
-SFX_MODULE = $(topsrcdir)/other-licenses/7zstub/sunbird/7zSD.sfx
-
-ifdef MOZ_UPDATER
-DEFINES += -DMOZ_UPDATER=1
-endif
-
-PP_LOCALIZED_FILES = \
- packages-static \
- $(NULL)
-
-INSTALLER_FILES = \
- app.tag \
- nsis/installer.nsi \
- nsis/uninstaller.nsi \
- nsis/shared.nsh \
- $(NULL)
-
-BRANDING_FILES = \
- branding.nsi \
- wizHeader.bmp \
- wizHeaderRTL.bmp \
- wizWatermark.bmp \
- $(NULL)
-
-DEFINES += \
- -DAB_CD=$(AB_CD) \
- -DPKG_BASENAME=$(PKG_BASENAME) \
- -DMOZ_APP_VERSION=$(MOZ_APP_VERSION) \
- -DMOZ_APP_DISPLAYNAME=${MOZ_APP_DISPLAYNAME} \
- -DMOZILLA_VERSION=${MOZILLA_VERSION} \
- $(NULL)
-
-include $(topsrcdir)/config/config.mk
-
-installer::
- $(MAKE) -C .. installer-stage
- $(MAKE) $(CONFIG_DIR)/setup.exe
-
-# For building the uninstaller during the application build so it can be
-# included for mar file generation.
-uninstaller::
- $(RM) -rf $(CONFIG_DIR) && mkdir $(CONFIG_DIR)
- $(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR)
- $(INSTALL) $(addprefix $(DIST)/branding/,$(BRANDING_FILES)) $(CONFIG_DIR)
- $(EXIT_ON_ERROR) \
- for i in $(PP_LOCALIZED_FILES); do \
- $(PYTHON) $(MOZILLA_SRCDIR)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) $(srcdir)/$$i > $(CONFIG_DIR)/$$i; \
- done
- $(PYTHON) $(MOZILLA_SRCDIR)/config/Preprocessor.py -Fsubstitution $(DEFINES) $(ACDEFINES) \
- $(srcdir)/nsis/defines.nsi.in > $(CONFIG_DIR)/defines.nsi
- $(PYTHON) $(MOZILLA_SRCDIR)/system/installer/windows/nsis/preprocess-locale.py \
- --preprocess-locale $(MOZILLA_SRCDIR) \
- $(call EXPAND_LOCALE_SRCDIR,calendar/locales)/installer $(AB_CD) $(CONFIG_DIR)
-
-$(CONFIG_DIR)/setup.exe::
- $(RM) -rf $(CONFIG_DIR) && mkdir $(CONFIG_DIR)
- $(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR)
- $(INSTALL) $(addprefix $(DIST)/branding/,$(BRANDING_FILES)) $(CONFIG_DIR)
- $(PYTHON) $(MOZILLA_SRCDIR)/system/installer/windows/nsis/preprocess-locale.py \
- --convert-utf8-utf16le $(DIST)/branding/license.txt $(CONFIG_DIR)/license.txt
- $(EXIT_ON_ERROR) \
- for i in $(PP_LOCALIZED_FILES); do \
- $(PYTHON) $(MOZILLA_SRCDIR)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) $(srcdir)/$$i > $(CONFIG_DIR)/$$i; \
- done
- $(PYTHON) $(MOZILLA_SRCDIR)/config/Preprocessor.py -Fsubstitution $(DEFINES) $(ACDEFINES) \
- $(srcdir)/nsis/defines.nsi.in > $(CONFIG_DIR)/defines.nsi
- $(PYTHON) $(MOZILLA_SRCDIR)/system/installer/windows/nsis/preprocess-locale.py \
- --preprocess-locale $(MOZILLA_SRCDIR) \
- $(call EXPAND_LOCALE_SRCDIR,calendar/locales)/installer $(AB_CD) $(CONFIG_DIR)
-
-include $(topsrcdir)/config/rules.mk
-include $(MOZILLA_SRCDIR)/system/installer/windows/nsis/makensis.mk
diff --git a/calendar/installer/windows/app.tag b/calendar/installer/windows/app.tag
deleted file mode 100644
index fd3134b41..000000000
--- a/calendar/installer/windows/app.tag
+++ /dev/null
@@ -1,4 +0,0 @@
-;!@Install@!UTF-8!
-Title="Mozilla Sunbird"
-RunProgram="setup.exe"
-;!@InstallEnd@! \ No newline at end of file
diff --git a/calendar/installer/windows/moz.build b/calendar/installer/windows/moz.build
deleted file mode 100644
index 58ce5e273..000000000
--- a/calendar/installer/windows/moz.build
+++ /dev/null
@@ -1,5 +0,0 @@
-# vim: set filetype=python:
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
diff --git a/calendar/installer/windows/nsis/defines.nsi.in b/calendar/installer/windows/nsis/defines.nsi.in
deleted file mode 100644
index be66201ea..000000000
--- a/calendar/installer/windows/nsis/defines.nsi.in
+++ /dev/null
@@ -1,32 +0,0 @@
-#filter substitution
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-
-# Win7: AppVendor, AppName, and AppVersion must match the application.ini values
-# of Vendor, Name, and Version. These values are used in registering shortcuts
-# with the taskbar. ExplicitAppUserModelID registration when the app launches is
-# handled in widget/src/windows/WinTaskbar.cpp.
-
-!define AppVendor "Mozilla"
-!define AppName "Sunbird"
-!define AppVersion "@MOZ_APP_VERSION@"
-!define AppUserModelID "${AppVendor}.${AppName}.${AppVersion}"
-!define GREVersion @MOZILLA_VERSION@
-!define AB_CD "@AB_CD@"
-
-!define FileMainEXE "sunbird.exe"
-!define WindowClass "SunbirdMessageWindow"
-!define MinSupportedVer "Microsoft Windows 2000"
-
-# File details shared by both the installer and uninstaller
-VIProductVersion "1.0.0.0"
-VIAddVersionKey "ProductName" "${BrandShortName}"
-VIAddVersionKey "CompanyName" "${CompanyName}"
-VIAddVersionKey "LegalTrademarks" "${BrandShortName} is a Trademark of The Mozilla Foundation."
-VIAddVersionKey "LegalCopyright" "${CompanyName}"
-VIAddVersionKey "FileVersion" "${AppVersion}"
-VIAddVersionKey "ProductVersion" "${AppVersion}"
-# Comments is not used but left below commented out for future reference
-# VIAddVersionKey "Comments" "Comments"
diff --git a/calendar/installer/windows/nsis/installer.nsi b/calendar/installer/windows/nsis/installer.nsi
deleted file mode 100644
index c10156e58..000000000
--- a/calendar/installer/windows/nsis/installer.nsi
+++ /dev/null
@@ -1,744 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-# Required Plugins:
-# AppAssocReg http://nsis.sourceforge.net/Application_Association_Registration_plug-in
-# ShellLink http://nsis.sourceforge.net/ShellLink_plug-in
-# UAC http://nsis.sourceforge.net/UAC_plug-in
-
-; Set verbosity to 3 (e.g. no script) to lessen the noise in the build logs
-!verbose 3
-
-; 7-Zip provides better compression than the lzma from NSIS so we add the files
-; uncompressed and use 7-Zip to create a SFX archive of it
-SetDatablockOptimize on
-SetCompress off
-CRCCheck on
-
-RequestExecutionLevel user
-
-!addplugindir ./
-
-Var TmpVal
-Var StartMenuDir
-Var InstallType
-Var AddStartMenuSC
-Var AddQuickLaunchSC
-Var AddDesktopSC
-
-; Other included files may depend upon these includes!
-; The following includes are provided by NSIS.
-!include FileFunc.nsh
-!include LogicLib.nsh
-!include MUI.nsh
-!include WinMessages.nsh
-!include WinVer.nsh
-!include WordFunc.nsh
-
-!insertmacro GetOptions
-!insertmacro GetParameters
-!insertmacro GetSize
-!insertmacro StrFilter
-!insertmacro WordReplace
-
-; The following includes are custom.
-!include branding.nsi
-!include defines.nsi
-!include common.nsh
-!include locales.nsi
-
-VIAddVersionKey "FileDescription" "${BrandShortName} Installer"
-VIAddVersionKey "OriginalFilename" "setup.exe"
-
-; Must be inserted before other macros that use logging
-!insertmacro _LoggingCommon
-
-; Most commonly used macros for managing shortcuts
-!insertmacro _LoggingShortcutsCommon
-
-!insertmacro ChangeMUIHeaderImage
-!insertmacro CheckForFilesInUse
-!insertmacro CleanUpdatesDir
-!insertmacro CopyFilesFromDir
-!insertmacro FindSMProgramsDir
-!insertmacro GetPathFromString
-!insertmacro GetParent
-!insertmacro ManualCloseAppPrompt
-!insertmacro RegCleanMain
-!insertmacro RegCleanUninstall
-!insertmacro SetBrandNameVars
-!insertmacro UnloadUAC
-!insertmacro WriteRegStr2
-!insertmacro WriteRegDWORD2
-
-!include shared.nsh
-
-; Helper macros for ui callbacks. Insert these after shared.nsh
-!insertmacro CheckCustomCommon
-!insertmacro InstallEndCleanupCommon
-!insertmacro InstallOnInitCommon
-!insertmacro InstallStartCleanupCommon
-!insertmacro LeaveDirectoryCommon
-!insertmacro OnEndCommon
-!insertmacro PreDirectoryCommon
-
-Name "${BrandFullName}"
-OutFile "setup.exe"
-InstallDirRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${BrandFullNameInternal} (${AppVersion})" "InstallLocation"
-InstallDir "$PROGRAMFILES\${BrandFullName}\"
-ShowInstDetails nevershow
-
-################################################################################
-# Modern User Interface - MUI
-
-!define MUI_ABORTWARNING
-!define MUI_ICON setup.ico
-!define MUI_UNICON setup.ico
-!define MUI_WELCOMEPAGE_TITLE_3LINES
-!define MUI_HEADERIMAGE
-!define MUI_HEADERIMAGE_RIGHT
-!define MUI_WELCOMEFINISHPAGE_BITMAP wizWatermark.bmp
-
-; Use a right to left header image when the language is right to left
-!ifdef ${AB_CD}_rtl
-!define MUI_HEADERIMAGE_BITMAP_RTL wizHeaderRTL.bmp
-!else
-!define MUI_HEADERIMAGE_BITMAP wizHeader.bmp
-!endif
-
-/**
- * Installation Pages
- */
-; Welcome Page
-!define MUI_PAGE_CUSTOMFUNCTION_PRE preWelcome
-!insertmacro MUI_PAGE_WELCOME
-
-; License Page
-!define MUI_PAGE_CUSTOMFUNCTION_SHOW showLicense
-!define MUI_LICENSEPAGE_CHECKBOX
-!insertmacro MUI_PAGE_LICENSE license.txt
-
-; Custom Options Page
-Page custom preOptions leaveOptions
-
-; Select Install Directory Page
-!define MUI_PAGE_CUSTOMFUNCTION_PRE preDirectory
-!define MUI_PAGE_CUSTOMFUNCTION_LEAVE leaveDirectory
-!define MUI_DIRECTORYPAGE_VERIFYONLEAVE
-!insertmacro MUI_PAGE_DIRECTORY
-
-; Custom Shortcuts Page
-Page custom preShortcuts leaveShortcuts
-
-; Start Menu Folder Page Configuration
-!define MUI_PAGE_CUSTOMFUNCTION_PRE preStartMenu
-!define MUI_PAGE_CUSTOMFUNCTION_LEAVE leaveStartMenu
-!define MUI_STARTMENUPAGE_NODISABLE
-!insertmacro MUI_PAGE_STARTMENU Application $StartMenuDir
-
-; Custom Summary Page
-Page custom preSummary leaveSummary
-
-; Install Files Page
-!insertmacro MUI_PAGE_INSTFILES
-
-; Finish Page
-!define MUI_FINISHPAGE_TITLE_3LINES
-!define MUI_FINISHPAGE_RUN
-!define MUI_FINISHPAGE_RUN_FUNCTION LaunchApp
-!define MUI_FINISHPAGE_RUN_TEXT $(LAUNCH_TEXT)
-!define MUI_PAGE_CUSTOMFUNCTION_PRE preFinish
-!insertmacro MUI_PAGE_FINISH
-
-; Use the default dialog for IDD_VERIFY for a simple Banner
-ChangeUI IDD_VERIFY "${NSISDIR}\Contrib\UIs\default.exe"
-
-################################################################################
-# Install Sections
-
-; Cleanup operations to perform at the start of the installation.
-Section "-InstallStartCleanup"
- SetDetailsPrint both
- DetailPrint $(STATUS_CLEANUP)
- SetDetailsPrint none
-
- SetOutPath "$INSTDIR"
- ${StartInstallLog} "${BrandFullName}" "${AB_CD}" "${AppVersion}" "${GREVersion}"
-
- ; Delete the app exe to prevent launching the app while we are installing.
- ClearErrors
- ${DeleteFile} "$INSTDIR\${FileMainEXE}"
- ${If} ${Errors}
- ; If the user closed the application it can take several seconds for it to
- ; shut down completely. If the application is being used by another user we
- ; can rename the file and then delete is when the system is restarted.
- Sleep 5000
- ${DeleteFile} "$INSTDIR\${FileMainEXE}"
- ClearErrors
- ${EndIf}
-
- ; Remove the updates directory for Vista and above
- ${CleanUpdatesDir} "Mozilla\Sunbird"
-
- ${InstallStartCleanupCommon}
-SectionEnd
-
-Section "-Application" APP_IDX
- ${StartUninstallLog}
-
- SetDetailsPrint both
- DetailPrint $(STATUS_INSTALL_APP)
- SetDetailsPrint none
-
- ${LogHeader} "Installing Main Files"
- ${CopyFilesFromDir} "$EXEDIR\nonlocalized" "$INSTDIR" \
- "$(ERROR_CREATE_DIRECTORY_PREFIX)" \
- "$(ERROR_CREATE_DIRECTORY_SUFFIX)"
-
- ; Register DLLs
- ; XXXrstrong - AccessibleMarshal.dll can be used by multiple applications but
- ; is only registered for the last application installed. When the last
- ; application installed is uninstalled AccessibleMarshal.dll will no longer be
- ; registered. bug 338878
- ${LogHeader} "DLL Registration"
- ClearErrors
- RegDLL "$INSTDIR\AccessibleMarshal.dll"
- ${If} ${Errors}
- ${LogMsg} "** ERROR Registering: $INSTDIR\AccessibleMarshal.dll **"
- ${Else}
- ${LogUninstall} "DLLReg: \AccessibleMarshal.dll"
- ${LogMsg} "Registered: $INSTDIR\AccessibleMarshal.dll"
- ${EndIf}
-
- ; Write extra files created by the application to the uninstall log so they
- ; will be removed when the application is uninstalled. To remove an empty
- ; directory write a bogus filename to the deepest directory and all empty
- ; parent directories will be removed.
- ${LogUninstall} "File: \components\compreg.dat"
- ${LogUninstall} "File: \components\xpti.dat"
- ${LogUninstall} "File: \.autoreg"
- ${LogUninstall} "File: \active-update.xml"
- ${LogUninstall} "File: \install.log"
- ${LogUninstall} "File: \install_status.log"
- ${LogUninstall} "File: \install_wizard.log"
- ${LogUninstall} "File: \updates.xml"
-
- SetDetailsPrint both
- DetailPrint $(STATUS_INSTALL_LANG)
- SetDetailsPrint none
-
- ${LogHeader} "Installing Localized Files"
- ${CopyFilesFromDir} "$EXEDIR\localized" "$INSTDIR" \
- "$(ERROR_CREATE_DIRECTORY_PREFIX)" \
- "$(ERROR_CREATE_DIRECTORY_SUFFIX)"
-
- ; Default for creating Start Menu folder and shortcuts
- ; (1 = create, 0 = don't create)
- ${If} $AddStartMenuSC == ""
- StrCpy $AddStartMenuSC "1"
- ${EndIf}
-
- ; Default for creating Quick Launch shortcut (1 = create, 0 = don't create)
- ${If} $AddQuickLaunchSC == ""
- StrCpy $AddQuickLaunchSC "1"
- ${EndIf}
-
- ; Default for creating Desktop shortcut (1 = create, 0 = don't create)
- ${If} $AddDesktopSC == ""
- StrCpy $AddDesktopSC "1"
- ${EndIf}
-
- ${LogHeader} "Adding Registry Entries"
- SetShellVarContext current ; Set SHCTX to HKCU
- ${RegCleanMain} "Software\Mozilla"
- ${RegCleanUninstall}
-
- ClearErrors
- WriteRegStr HKLM "Software\Mozilla" "${BrandShortName}InstallerTest" "Write Test"
- ${If} ${Errors}
- StrCpy $TmpVal "HKCU" ; used primarily for logging
- ${Else}
- SetShellVarContext all ; Set SHCTX to HKLM
- DeleteRegValue HKLM "Software\Mozilla" "${BrandShortName}InstallerTest"
- StrCpy $TmpVal "HKLM" ; used primarily for logging
- ${RegCleanMain} "Software\Mozilla"
- ${RegCleanUninstall}
- ${EndIf}
-
- ; The previous installer adds several regsitry values to both HKLM and HKCU.
- ; We now try to add to HKLM and if that fails to HKCU
-
- ; The order that reg keys and values are added is important if you use the
- ; uninstall log to remove them on uninstall. When using the uninstall log you
- ; MUST add children first so they will be removed first on uninstall so they
- ; will be empty when the key is deleted. This allows the uninstaller to
- ; specify that only empty keys will be deleted.
- ${SetAppKeys}
-
- ; Uninstall keys can only exist under HKLM on some versions of windows. Since
- ; it doesn't cause problems always add them.
- ${SetUninstallKeys}
-
- ; These need special handling on uninstall since they may be overwritten by
- ; an install into a different location.
- StrCpy $0 "Software\Microsoft\Windows\CurrentVersion\App Paths\${FileMainEXE}"
- ${WriteRegStr2} $TmpVal "$0" "" "$INSTDIR\${FileMainEXE}" 0
- ${WriteRegStr2} $TmpVal "$0" "Path" "$INSTDIR" 0
-
- !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
-
- ; Create shortcuts
- ${LogHeader} "Adding Shortcuts"
-
- ; Always add the relative path to the application's Start Menu directory and
- ; the application's shortcuts to the shortcuts log ini file. The
- ; DeleteShortcuts macro will do the right thing on uninstall if they don't
- ; exist.
- ${LogSMProgramsDirRelPath} "$StartMenuDir"
- ${LogSMProgramsShortcut} "${BrandFullName}.lnk"
- ${LogSMProgramsShortcut} "${BrandFullName} ($(SAFE_MODE)).lnk"
- ${LogQuickLaunchShortcut} "${BrandFullName}.lnk"
- ${LogDesktopShortcut} "${BrandFullName}.lnk"
-
- ${If} $AddStartMenuSC == 1
- ${Unless} ${FileExists} "$SMPROGRAMS\$StartMenuDir"
- CreateDirectory "$SMPROGRAMS\$StartMenuDir"
- ${LogMsg} "Added Start Menu Directory: $SMPROGRAMS\$StartMenuDir"
- ${EndUnless}
- CreateShortCut "$SMPROGRAMS\$StartMenuDir\${BrandFullName}.lnk" "$INSTDIR\${FileMainEXE}" "" "$INSTDIR\${FileMainEXE}" 0
- ${LogMsg} "Added Shortcut: $SMPROGRAMS\$StartMenuDir\${BrandFullName}.lnk"
- CreateShortCut "$SMPROGRAMS\$StartMenuDir\${BrandFullName} ($(SAFE_MODE)).lnk" "$INSTDIR\${FileMainEXE}" "-safe-mode" "$INSTDIR\${FileMainEXE}" 0
- ${LogMsg} "Added Shortcut: $SMPROGRAMS\$StartMenuDir\${BrandFullName} ($(SAFE_MODE)).lnk"
- ${EndIf}
-
- ; perhaps use the uninstall keys
- ${If} $AddQuickLaunchSC == 1
- CreateShortCut "$QUICKLAUNCH\${BrandFullName}.lnk" "$INSTDIR\${FileMainEXE}" "" "$INSTDIR\${FileMainEXE}" 0
- ${LogMsg} "Added Shortcut: $QUICKLAUNCH\${BrandFullName}.lnk"
- ${EndIf}
-
- ${If} $AddDesktopSC == 1
- CreateShortCut "$DESKTOP\${BrandFullName}.lnk" "$INSTDIR\${FileMainEXE}" "" "$INSTDIR\${FileMainEXE}" 0
- ${LogMsg} "Added Shortcut: $DESKTOP\${BrandFullName}.lnk"
- ${EndIf}
-
- !insertmacro MUI_STARTMENU_WRITE_END
-SectionEnd
-
-; Cleanup operations to perform at the end of the installation.
-Section "-InstallEndCleanup"
- SetDetailsPrint both
- DetailPrint "$(STATUS_CLEANUP)"
- SetDetailsPrint none
-
- ${LogHeader} "Updating Uninstall Log With Previous Uninstall Log"
-
- ; Refresh desktop icons
- System::Call "shell32::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)"
-
- ${InstallEndCleanupCommon}
-
- ; If we have to reboot give SHChangeNotify time to finish the refreshing
- ; the icons so the OS doesn't display the icons from helper.exe
- ${If} ${RebootFlag}
- Sleep 10000
- ${LogHeader} "Reboot Required To Finish Installation"
- ; ${FileMainEXE}.moz-upgrade should never exist but just in case...
- ${Unless} ${FileExists} "$INSTDIR\${FileMainEXE}.moz-upgrade"
- Rename "$INSTDIR\${FileMainEXE}" "$INSTDIR\${FileMainEXE}.moz-upgrade"
- ${EndUnless}
-
- ${If} ${FileExists} "$INSTDIR\${FileMainEXE}"
- ClearErrors
- Rename "$INSTDIR\${FileMainEXE}" "$INSTDIR\${FileMainEXE}.moz-delete"
- ${Unless} ${Errors}
- Delete /REBOOTOK "$INSTDIR\${FileMainEXE}.moz-delete"
- ${EndUnless}
- ${EndUnless}
-
- ${Unless} ${FileExists} "$INSTDIR\${FileMainEXE}"
- CopyFiles /SILENT "$INSTDIR\uninstall\helper.exe" "$INSTDIR"
- FileOpen $0 "$INSTDIR\${FileMainEXE}" w
- FileWrite $0 "Will be deleted on restart"
- Rename /REBOOTOK "$INSTDIR\${FileMainEXE}.moz-upgrade" "$INSTDIR\${FileMainEXE}"
- FileClose $0
- Delete "$INSTDIR\${FileMainEXE}"
- Rename "$INSTDIR\helper.exe" "$INSTDIR\${FileMainEXE}"
- ${EndUnless}
- ${EndIf}
-SectionEnd
-
-################################################################################
-# Helper Functions
-
-Function CheckExistingInstall
- ; If there is a pending file copy from a previous uninstall don't allow
- ; installing until after the system has rebooted.
- IfFileExists "$INSTDIR\${FileMainEXE}.moz-upgrade" +1 +4
- MessageBox MB_YESNO "$(WARN_RESTART_REQUIRED_UPGRADE)" IDNO +2
- Reboot
- Quit
-
- ; If there is a pending file deletion from a previous uninstall don't allow
- ; installing until after the system has rebooted.
- IfFileExists "$INSTDIR\${FileMainEXE}.moz-delete" +1 +4
- MessageBox MB_YESNO "$(WARN_RESTART_REQUIRED_UNINSTALL)" IDNO +2
- Reboot
- Quit
-
- ${If} ${FileExists} "$INSTDIR\${FileMainEXE}"
- Banner::show /NOUNLOAD "$(BANNER_CHECK_EXISTING)"
-
- ${If} "$TmpVal" == "FoundMessageWindow"
- Sleep 5000
- ${EndIf}
-
- ${PushFilesToCheck}
-
- ; Store the return value in $TmpVal so it is less likely to be accidentally
- ; overwritten elsewhere.
- ${CheckForFilesInUse} $TmpVal
-
- Banner::destroy
-
- ${If} "$TmpVal" == "true"
- StrCpy $TmpVal "FoundMessageWindow"
- ${ManualCloseAppPrompt} "${WindowClass}" "$(WARN_MANUALLY_CLOSE_APP_INSTALL)"
- StrCpy $TmpVal "true"
- ${EndIf}
- ${EndIf}
-FunctionEnd
-
-Function LaunchApp
- ClearErrors
- ${GetParameters} $0
- ${GetOptions} "$0" "/UAC:" $1
- ${If} ${Errors}
- ${ManualCloseAppPrompt} "${WindowClass}" "$(WARN_MANUALLY_CLOSE_APP_LAUNCH)"
- Exec "$INSTDIR\${FileMainEXE}"
- ${Else}
- GetFunctionAddress $0 LaunchAppFromElevatedProcess
- UAC::ExecCodeSegment $0
- ${EndIf}
-FunctionEnd
-
-Function LaunchAppFromElevatedProcess
- ${ManualCloseAppPrompt} "${WindowClass}" "$(WARN_MANUALLY_CLOSE_APP_LAUNCH)"
-
- ; Find the installation directory when launching using GetFunctionAddress
- ; from an elevated installer since $INSTDIR will not be set in this installer
- ${StrFilter} "${FileMainEXE}" "+" "" "" $R9
- ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${BrandFullNameInternal} (${AppVersion})" "DisplayIcon"
- ${GetPathFromString} "$0" $0
- ${GetParent} "$0" $1
- ; Set our current working directory to the application's install directory
- ; otherwise the 7-Zip temp directory will be in use and won't be deleted.
- SetOutPath "$1"
- Exec "$0"
-FunctionEnd
-
-################################################################################
-# Language
-
-!insertmacro MOZ_MUI_LANGUAGE 'baseLocale'
-!verbose push
-!verbose 3
-!include "overrideLocale.nsh"
-!include "customLocale.nsh"
-!verbose pop
-
-; Set this after the locale files to override it if it is in the locale
-; using " " for BrandingText will hide the "Nullsoft Install System..." branding
-BrandingText " "
-
-################################################################################
-# Page pre, show, and leave functions
-
-Function preWelcome
- ${If} ${FileExists} "$EXEDIR\localized\distribution\modern-wizard.bmp"
- Delete "$PLUGINSDIR\modern-wizard.bmp"
- CopyFiles /SILENT "$EXEDIR\localized\distribution\modern-wizard.bmp" "$PLUGINSDIR\modern-wizard.bmp"
- ${EndIf}
-FunctionEnd
-
-Function showLicense
- ${If} ${FileExists} "$EXEDIR\localized\distribution\modern-header.bmp"
- ${AndIf} $hHeaderBitmap == ""
- Delete "$PLUGINSDIR\modern-header.bmp"
- CopyFiles /SILENT "$EXEDIR\localized\distribution\modern-header.bmp" "$PLUGINSDIR\modern-header.bmp"
- ${ChangeMUIHeaderImage} "$PLUGINSDIR\modern-header.bmp"
- ${EndIf}
-FunctionEnd
-
-Function preOptions
- !insertmacro MUI_HEADER_TEXT "$(OPTIONS_PAGE_TITLE)" "$(OPTIONS_PAGE_SUBTITLE)"
- !insertmacro MUI_INSTALLOPTIONS_DISPLAY "options.ini"
-FunctionEnd
-
-Function leaveOptions
- ${MUI_INSTALLOPTIONS_READ} $0 "options.ini" "Settings" "State"
- ${If} $0 != 0
- Abort
- ${EndIf}
- ${MUI_INSTALLOPTIONS_READ} $R0 "options.ini" "Field 2" "State"
- StrCmp $R0 "1" +1 +2
- StrCpy $InstallType ${INSTALLTYPE_BASIC}
- ${MUI_INSTALLOPTIONS_READ} $R0 "options.ini" "Field 3" "State"
- StrCmp $R0 "1" +1 +2
- StrCpy $InstallType ${INSTALLTYPE_CUSTOM}
-
- ${If} $InstallType != ${INSTALLTYPE_CUSTOM}
-!ifndef NO_INSTDIR_FROM_REG
- SetShellVarContext all ; Set SHCTX to HKLM
- ${GetSingleInstallPath} "Software\Mozilla\${BrandFullNameInternal}" $R9
-
- StrCmp "$R9" "false" +1 fix_install_dir
-
- SetShellVarContext current ; Set SHCTX to HKCU
- ${GetSingleInstallPath} "Software\Mozilla\${BrandFullNameInternal}" $R9
-
- fix_install_dir:
- StrCmp "$R9" "false" +2 +1
- StrCpy $INSTDIR "$R9"
-!endif
-
- Call CheckExistingInstall
- ${EndIf}
-FunctionEnd
-
-Function preDirectory
- ${PreDirectoryCommon}
-FunctionEnd
-
-Function leaveDirectory
- ${LeaveDirectoryCommon} "$(WARN_DISK_SPACE)" "$(WARN_WRITE_ACCESS)"
-FunctionEnd
-
-Function preShortcuts
- ${CheckCustomCommon}
- !insertmacro MUI_HEADER_TEXT "$(SHORTCUTS_PAGE_TITLE)" "$(SHORTCUTS_PAGE_SUBTITLE)"
- !insertmacro MUI_INSTALLOPTIONS_DISPLAY "shortcuts.ini"
-FunctionEnd
-
-Function leaveShortcuts
- ${MUI_INSTALLOPTIONS_READ} $0 "shortcuts.ini" "Settings" "State"
- ${If} $0 != 0
- Abort
- ${EndIf}
- ${MUI_INSTALLOPTIONS_READ} $AddDesktopSC "shortcuts.ini" "Field 2" "State"
- ${MUI_INSTALLOPTIONS_READ} $AddStartMenuSC "shortcuts.ini" "Field 3" "State"
- ${MUI_INSTALLOPTIONS_READ} $AddQuickLaunchSC "shortcuts.ini" "Field 4" "State"
-FunctionEnd
-
-Function preStartMenu
- ; With the Unicode installer the path to the application's Start Menu
- ; directory relative to the Start Menu's Programs directory is written to the
- ; shortcuts log ini file and is used to set the default Start Menu directory.
- ${GetSMProgramsDirRelPath} $0
- ${If} "$0" != ""
- StrCpy $StartMenuDir "$0"
- ${Else}
- ; Prior to the Unicode installer the path to the application's Start Menu
- ; directory relative to the Start Menu's Programs directory was written to
- ; the registry and use this value to set the default Start Menu directory.
- ClearErrors
- ReadRegStr $0 HKLM "Software\Mozilla\${BrandFullNameInternal}\${AppVersion} (${AB_CD})\Main" "Start Menu Folder"
- ${If} ${Errors}
- ; Use the FindSMProgramsDir macro to find a previously used path to the
- ; application's Start Menu directory relative to the Start Menu's Programs
- ; directory in the uninstall log and use this value to set the default
- ; Start Menu directory.
- ${FindSMProgramsDir} $0
- ${If} "$0" != ""
- StrCpy $StartMenuDir "$0"
- ${EndIf}
- ${Else}
- StrCpy $StartMenuDir "$0"
- ${EndUnless}
- ${EndIf}
-
- ${CheckCustomCommon}
- ${If} $AddStartMenuSC != 1
- Abort
- ${EndIf}
-FunctionEnd
-
-Function leaveStartMenu
- ${If} $InstallType == ${INSTALLTYPE_CUSTOM}
- Call CheckExistingInstall
- ${EndIf}
-FunctionEnd
-
-Function preSummary
- ; Setup the summary.ini file for the Custom Summary Page
- WriteINIStr "$PLUGINSDIR\summary.ini" "Settings" NumFields "3"
-
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 1" Type "label"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 1" Text "$(SUMMARY_INSTALLED_TO)"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 1" Left "0"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 1" Right "-1"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 1" Top "5"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 1" Bottom "15"
-
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 2" Type "text"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 2" state ""
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 2" Left "0"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 2" Right "-1"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 2" Top "17"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 2" Bottom "30"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 2" flags "READONLY"
-
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 3" Type "label"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 3" Text "$(SUMMARY_CLICK)"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 3" Left "0"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 3" Right "-1"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 3" Top "130"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 3" Bottom "150"
-
- ${If} "$TmpVal" == "true"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 4" Type "label"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 4" Text "$(SUMMARY_REBOOT_REQUIRED_INSTALL)"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 4" Left "0"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 4" Right "-1"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 4" Top "35"
- WriteINIStr "$PLUGINSDIR\summary.ini" "Field 4" Bottom "45"
-
- WriteINIStr "$PLUGINSDIR\summary.ini" "Settings" NumFields "4"
- ${EndIf}
-
- !insertmacro MUI_HEADER_TEXT "$(SUMMARY_PAGE_TITLE)" "$(SUMMARY_PAGE_SUBTITLE)"
-
- ; The Summary custom page has a textbox that will automatically receive
- ; focus. This sets the focus to the Install button instead.
- !insertmacro MUI_INSTALLOPTIONS_INITDIALOG "summary.ini"
- GetDlgItem $0 $HWNDPARENT 1
- System::Call "user32::SetFocus(i r0, i 0x0007, i,i)i"
- ${MUI_INSTALLOPTIONS_READ} $1 "summary.ini" "Field 2" "HWND"
- SendMessage $1 ${WM_SETTEXT} 0 "STR:$INSTDIR"
- !insertmacro MUI_INSTALLOPTIONS_SHOW
-FunctionEnd
-
-Function leaveSummary
- ; Try to delete the app executable and if we can't delete it try to find the
- ; app's message window and prompt the user to close the app. This allows
- ; running an instance that is located in another directory. If for whatever
- ; reason there is no message window we will just rename the app's files and
- ; then remove them on restart.
- ClearErrors
- ${DeleteFile} "$INSTDIR\${FileMainEXE}"
- ${If} ${Errors}
- ${ManualCloseAppPrompt} "${WindowClass}" "$(WARN_MANUALLY_CLOSE_APP_INSTALL)"
- ${EndIf}
-FunctionEnd
-
-; When we add an optional action to the finish page the cancel button is
-; enabled. This disables it and leaves the finish button as the only choice.
-Function preFinish
- ${EndInstallLog} "${BrandFullName}"
- !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "settings" "cancelenabled" "0"
-FunctionEnd
-
-################################################################################
-# Initialization Functions
-
-Function .onInit
- StrCpy $LANGUAGE 0
- ${SetBrandNameVars} "$EXEDIR\localized\distribution\setup.ini"
-
- ${InstallOnInitCommon} "$(WARN_MIN_SUPPORTED_OS_MSG)"
-
- !insertmacro InitInstallOptionsFile "options.ini"
- !insertmacro InitInstallOptionsFile "shortcuts.ini"
- !insertmacro InitInstallOptionsFile "summary.ini"
-
- ; Setup the options.ini file for the Custom Options Page
- WriteINIStr "$PLUGINSDIR\options.ini" "Settings" NumFields "5"
-
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 1" Type "label"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 1" Text "$(OPTIONS_SUMMARY)"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 1" Left "0"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 1" Right "-1"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 1" Top "0"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 1" Bottom "10"
-
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 2" Type "RadioButton"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 2" Text "$(OPTION_STANDARD_RADIO)"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 2" Left "15"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 2" Right "-1"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 2" Top "25"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 2" Bottom "35"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 2" State "1"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 2" Flags "GROUP"
-
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 3" Type "RadioButton"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 3" Text "$(OPTION_CUSTOM_RADIO)"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 3" Left "15"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 3" Right "-1"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 3" Top "55"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 3" Bottom "65"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 3" State "0"
-
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 4" Type "label"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 4" Text "$(OPTION_STANDARD_DESC)"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 4" Left "30"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 4" Right "-1"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 4" Top "37"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 4" Bottom "57"
-
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 5" Type "label"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 5" Text "$(OPTION_CUSTOM_DESC)"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 5" Left "30"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 5" Right "-1"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 5" Top "67"
- WriteINIStr "$PLUGINSDIR\options.ini" "Field 5" Bottom "87"
-
- ; Setup the shortcuts.ini file for the Custom Shortcuts Page
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Settings" NumFields "4"
-
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 1" Type "label"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 1" Text "$(CREATE_ICONS_DESC)"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 1" Left "0"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 1" Right "-1"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 1" Top "5"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 1" Bottom "15"
-
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 2" Type "checkbox"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 2" Text "$(ICONS_DESKTOP)"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 2" Left "15"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 2" Right "-1"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 2" Top "20"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 2" Bottom "30"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 2" State "1"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 2" Flags "GROUP"
-
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 3" Type "checkbox"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 3" Text "$(ICONS_STARTMENU)"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 3" Left "15"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 3" Right "-1"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 3" Top "40"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 3" Bottom "50"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 3" State "1"
-
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Type "checkbox"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Text "$(ICONS_QUICKLAUNCH)"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Left "15"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Right "-1"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Top "60"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Bottom "70"
- WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" State "1"
-
- ; There must always be nonlocalized and localized directories.
- ${GetSize} "$EXEDIR\nonlocalized\" "/S=0K" $R5 $R7 $R8
- ${GetSize} "$EXEDIR\localized\" "/S=0K" $R6 $R7 $R8
- IntOp $R8 $R5 + $R6
- SectionSetSize ${APP_IDX} $R8
-
- ; Initialize $hHeaderBitmap to prevent redundant changing of the bitmap if
- ; the user clicks the back button
- StrCpy $hHeaderBitmap ""
-FunctionEnd
-
-Function .onGUIEnd
- ${OnEndCommon}
-FunctionEnd
diff --git a/calendar/installer/windows/nsis/shared.nsh b/calendar/installer/windows/nsis/shared.nsh
deleted file mode 100644
index 2001e9570..000000000
--- a/calendar/installer/windows/nsis/shared.nsh
+++ /dev/null
@@ -1,160 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-!macro PostUpdate
- ${CreateShortcutsLog}
-
- ; Remove registry entries for non-existent apps and for apps that point to our
- ; install location in the Software\Mozilla key and uninstall registry entries
- ; that point to our install location for both HKCU and HKLM.
- SetShellVarContext current ; Set SHCTX to the current user (e.g. HKCU)
- ${RegCleanMain} "Software\Mozilla"
- ${RegCleanUninstall}
-
- ClearErrors
- WriteRegStr HKLM "Software\Mozilla" "${BrandShortName}InstallerTest" "Write Test"
- ${If} ${Errors}
- StrCpy $TmpVal "HKCU" ; used primarily for logging
- ${Else}
- DeleteRegValue HKLM "Software\Mozilla" "${BrandShortName}InstallerTest"
- SetShellVarContext all ; Set SHCTX to all users (e.g. HKLM)
- StrCpy $TmpVal "HKLM" ; used primarily for logging
- ${RegCleanMain} "Software\Mozilla"
- ${RegCleanUninstall}
- ${SetUninstallKeys}
- ${EndIf}
-
- ; Add Software\Mozilla\ registry entries
- ${SetAppKeys}
-
- ; Remove files that may be left behind by the application in the
- ; VirtualStore directory.
- ${CleanVirtualStore}
-
- ; Remove talkback if it is present (remove after bug 386760 is fixed)
- ${If} ${FileExists} "$INSTDIR\extensions\talkback@mozilla.org\"
- RmDir /r "$INSTDIR\extensions\talkback@mozilla.org\"
- ${EndIf}
-!macroend
-!define PostUpdate "!insertmacro PostUpdate"
-
-!macro SetAsDefaultAppUser
- ; This macro must be defined to use UninstallOnInitCommon in commmon.nsh
-!macroend
-!define SetAsDefaultAppUser "!insertmacro SetAsDefaultAppUser"
-
-!macro SetAsDefaultAppGlobal
- ; This macro must be defined to use UninstallOnInitCommon in commmon.nsh
-!macroend
-!define SetAsDefaultAppGlobal "!insertmacro SetAsDefaultAppGlobal"
-
-!macro HideShortcuts
- ; This macro must be defined to use UninstallOnInitCommon in commmon.nsh
-!macroend
-!define HideShortcuts "!insertmacro HideShortcuts"
-
-!macro ShowShortcuts
- ; This macro must be defined to use UninstallOnInitCommon in commmon.nsh
-!macroend
-!define ShowShortcuts "!insertmacro ShowShortcuts"
-
-!macro SetAppKeys
- ${GetLongPath} "$INSTDIR" $8
- StrCpy $0 "Software\Mozilla\${BrandFullNameInternal}\${AppVersion} (${AB_CD})\Main"
- ${WriteRegStr2} $TmpVal "$0" "Install Directory" "$8" 0
- ${WriteRegStr2} $TmpVal "$0" "PathToExe" "$8\${FileMainEXE}" 0
-
- StrCpy $0 "Software\Mozilla\${BrandFullNameInternal}\${AppVersion} (${AB_CD})\Uninstall"
- ${WriteRegStr2} $TmpVal "$0" "Description" "${BrandFullNameInternal} (${AppVersion})" 0
-
- StrCpy $0 "Software\Mozilla\${BrandFullNameInternal}\${AppVersion} (${AB_CD})"
- ${WriteRegStr2} $TmpVal "$0" "" "${AppVersion} (${AB_CD})" 0
-
- StrCpy $0 "Software\Mozilla\${BrandFullNameInternal} ${AppVersion}\bin"
- ${WriteRegStr2} $TmpVal "$0" "PathToExe" "$8\${FileMainEXE}" 0
-
- StrCpy $0 "Software\Mozilla\${BrandFullNameInternal} ${AppVersion}\extensions"
- ${WriteRegStr2} $TmpVal "$0" "Components" "$8\components" 0
- ${WriteRegStr2} $TmpVal "$0" "Plugins" "$8\plugins" 0
-
- StrCpy $0 "Software\Mozilla\${BrandFullNameInternal} ${AppVersion}"
- ${WriteRegStr2} $TmpVal "$0" "GeckoVer" "${GREVersion}" 0
-
- StrCpy $0 "Software\Mozilla\${BrandFullNameInternal}"
- ${WriteRegStr2} $TmpVal "$0" "" "${GREVersion}" 0
- ${WriteRegStr2} $TmpVal "$0" "CurrentVersion" "${AppVersion} (${AB_CD})" 0
-!macroend
-!define SetAppKeys "!insertmacro SetAppKeys"
-
-!macro SetUninstallKeys
- StrCpy $0 "Software\Microsoft\Windows\CurrentVersion\Uninstall\${BrandFullNameInternal} (${AppVersion})"
- ${GetLongPath} "$INSTDIR" $8
-
- ; Write the uninstall registry keys
- ${WriteRegStr2} $TmpVal "$0" "Comments" "${BrandFullNameInternal}" 0
- ${WriteRegStr2} $TmpVal "$0" "DisplayIcon" "$8\${FileMainEXE},0" 0
- ${WriteRegStr2} $TmpVal "$0" "DisplayName" "${BrandFullNameInternal} (${AppVersion})" 0
- ${WriteRegStr2} $TmpVal "$0" "DisplayVersion" "${AppVersion} (${AB_CD})" 0
- ${WriteRegStr2} $TmpVal "$0" "InstallLocation" "$8" 0
- ${WriteRegStr2} $TmpVal "$0" "Publisher" "Mozilla" 0
- ${WriteRegStr2} $TmpVal "$0" "UninstallString" "$8\uninstall\helper.exe" 0
- ${WriteRegStr2} $TmpVal "$0" "URLInfoAbout" "${URLInfoAbout}" 0
- ${WriteRegStr2} $TmpVal "$0" "URLUpdateInfo" "${URLUpdateInfo}" 0
- ${WriteRegDWORD2} $TmpVal "$0" "NoModify" 1 0
- ${WriteRegDWORD2} $TmpVal "$0" "NoRepair" 1 0
-!macroend
-!define SetUninstallKeys "!insertmacro SetUninstallKeys"
-
-; Creates the shortcuts log ini file with the appropriate entries if it doesn't
-; already exist.
-!macro CreateShortcutsLog
- ${GetShortcutsLogPath} $0
- ${Unless} ${FileExists} "$0"
- ; Default to ${BrandFullName} for the Start Menu Folder
- StrCpy $TmpVal "${BrandFullName}"
- ; Prior to Unicode installer the Start Menu directory was written to the
- ; registry and this value can be used to set the Start Menu directory.
- ClearErrors
- ReadRegStr $0 SHCTX "Software\Mozilla\${BrandFullNameInternal}\${AppVersion} (${AB_CD})\Main" "Start Menu Folder"
- ${If} ${Errors}
- ${FindSMProgramsDir} $0
- ${If} "$0" != ""
- StrCpy $TmpVal "$0"
- ${EndIf}
- ${Else}
- StrCpy $TmpVal "$0"
- ${EndUnless}
-
- ${LogSMProgramsDirRelPath} "$TmpVal"
- ${LogSMProgramsShortcut} "${BrandFullName}.lnk"
- ${LogSMProgramsShortcut} "${BrandFullName} ($(SAFE_MODE)).lnk"
- ${LogQuickLaunchShortcut} "${BrandFullName}.lnk"
- ${LogDesktopShortcut} "${BrandFullName}.lnk"
- ${EndUnless}
-!macroend
-!define CreateShortcutsLog "!insertmacro CreateShortcutsLog"
-
-; The files to check if they are in use during (un)install so the restart is
-; required message is displayed. All files must be located in the $INSTDIR
-; directory.
-!macro PushFilesToCheck
- ; The first string to be pushed onto the stack MUST be "end" to indicate
- ; that there are no more files to check in $INSTDIR and the last string
- ; should be ${FileMainEXE} so if it is in use the CheckForFilesInUse macro
- ; returns after the first check.
- Push "end"
- Push "AccessibleMarshal.dll"
- Push "freebl3.dll"
- Push "nssckbi.dll"
- Push "nspr4.dll"
- Push "nssdbm3.dll"
- Push "sqlite3.dll"
- Push "mozsqlite3.dll"
- Push "xpcom.dll"
- Push "crashreporter.exe"
- Push "updater.exe"
- Push "xpicleanup.exe"
- Push "${FileMainEXE}"
-!macroend
-!define PushFilesToCheck "!insertmacro PushFilesToCheck"
diff --git a/calendar/installer/windows/nsis/uninstaller.nsi b/calendar/installer/windows/nsis/uninstaller.nsi
deleted file mode 100644
index e5c5cf1e2..000000000
--- a/calendar/installer/windows/nsis/uninstaller.nsi
+++ /dev/null
@@ -1,398 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-# Required Plugins:
-# AppAssocReg http://nsis.sourceforge.net/Application_Association_Registration_plug-in
-# ShellLink http://nsis.sourceforge.net/ShellLink_plug-in
-# UAC http://nsis.sourceforge.net/UAC_plug-in
-
-; Set verbosity to 3 (e.g. no script) to lessen the noise in the build logs
-!verbose 3
-
-; 7-Zip provides better compression than the lzma from NSIS so we add the files
-; uncompressed and use 7-Zip to create a SFX archive of it
-SetDatablockOptimize on
-SetCompress off
-CRCCheck on
-
-RequestExecutionLevel user
-
-!addplugindir ./
-
-; prevents compiling of the reg write logging.
-!define NO_LOG
-
-Var TmpVal
-
-; Other included files may depend upon these includes!
-; The following includes are provided by NSIS.
-!include FileFunc.nsh
-!include LogicLib.nsh
-!include MUI.nsh
-!include WinMessages.nsh
-!include WinVer.nsh
-!include WordFunc.nsh
-
-!insertmacro GetOptions
-!insertmacro GetParameters
-!insertmacro GetParent
-
-!insertmacro un.GetParent
-
-; The following includes are custom.
-!include branding.nsi
-!include defines.nsi
-!include common.nsh
-!include locales.nsi
-
-; This is named BrandShortName helper because we use this for software update
-; post update cleanup.
-VIAddVersionKey "FileDescription" "${BrandShortName} Helper"
-VIAddVersionKey "OriginalFilename" "helper.exe"
-
-; Most commonly used macros for managing shortcuts
-!insertmacro _LoggingShortcutsCommon
-
-!insertmacro CleanVirtualStore
-!insertmacro FindSMProgramsDir
-!insertmacro GetLongPath
-!insertmacro RegCleanMain
-!insertmacro RegCleanUninstall
-!insertmacro SetBrandNameVars
-!insertmacro UnloadUAC
-!insertmacro UpdateShortcutAppModelIDs
-!insertmacro WriteRegDWORD2
-!insertmacro WriteRegStr2
-
-!insertmacro un.ChangeMUIHeaderImage
-!insertmacro un.CheckForFilesInUse
-!insertmacro un.CleanUpdatesDir
-!insertmacro un.CleanVirtualStore
-!insertmacro un.DeleteShortcuts
-!insertmacro un.GetLongPath
-!insertmacro un.GetSecondInstallPath
-!insertmacro un.ManualCloseAppPrompt
-!insertmacro un.ParseUninstallLog
-!insertmacro un.RegCleanMain
-!insertmacro un.RegCleanUninstall
-!insertmacro un.RemoveQuotesFromPath
-!insertmacro un.SetBrandNameVars
-
-!include shared.nsh
-
-; Helper macros for ui callbacks. Insert these after shared.nsh
-!insertmacro OnEndCommon
-!insertmacro UninstallOnInitCommon
-
-!insertmacro un.OnEndCommon
-
-Name "${BrandFullName}"
-OutFile "helper.exe"
-InstallDirRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${BrandFullNameInternal} (${AppVersion})" "InstallLocation"
-InstallDir "$PROGRAMFILES\${BrandFullName}"
-ShowUnInstDetails nevershow
-
-################################################################################
-# Modern User Interface - MUI
-
-!define MUI_ABORTWARNING
-!define MUI_ICON setup.ico
-!define MUI_UNICON setup.ico
-!define MUI_WELCOMEPAGE_TITLE_3LINES
-!define MUI_HEADERIMAGE
-!define MUI_HEADERIMAGE_RIGHT
-!define MUI_UNWELCOMEFINISHPAGE_BITMAP wizWatermark.bmp
-
-; Use a right to left header image when the language is right to left
-!ifdef ${AB_CD}_rtl
-!define MUI_HEADERIMAGE_BITMAP_RTL wizHeaderRTL.bmp
-!else
-!define MUI_HEADERIMAGE_BITMAP wizHeader.bmp
-!endif
-
-/**
- * Uninstall Pages
- */
-; Welcome Page
-!define MUI_PAGE_CUSTOMFUNCTION_PRE un.preWelcome
-!define MUI_PAGE_CUSTOMFUNCTION_LEAVE un.leaveWelcome
-!insertmacro MUI_UNPAGE_WELCOME
-
-; Custom Uninstall Confirm Page
-UninstPage custom un.preConfirm un.leaveConfirm
-
-; Remove Files Page
-!insertmacro MUI_UNPAGE_INSTFILES
-
-; Finish Page
-
-!insertmacro MUI_UNPAGE_FINISH
-
-; Use the default dialog for IDD_VERIFY for a simple Banner
-ChangeUI IDD_VERIFY "${NSISDIR}\Contrib\UIs\default.exe"
-
-################################################################################
-# Install Sections
-; Empty section required for the installer to compile as an uninstaller
-Section ""
-SectionEnd
-
-################################################################################
-# Uninstall Sections
-
-Section "Uninstall"
- SetDetailsPrint textonly
- DetailPrint $(STATUS_UNINSTALL_MAIN)
- SetDetailsPrint none
-
- ; Delete the app exe to prevent launching the app while we are uninstalling.
- ClearErrors
- ${DeleteFile} "$INSTDIR\${FileMainEXE}"
- ${If} ${Errors}
- ; If the user closed the application it can take several seconds for it to
- ; shut down completely. If the application is being used by another user we
- ; can still delete the files when the system is restarted.
- Sleep 5000
- ${DeleteFile} "$INSTDIR\${FileMainEXE}"
- ClearErrors
- ${EndIf}
-
- SetShellVarContext current ; Set SHCTX to HKCU
- ${un.RegCleanMain} "Software\Mozilla"
- ${un.RegCleanUninstall}
- ${un.DeleteShortcuts}
-
- ClearErrors
- WriteRegStr HKLM "Software\Mozilla" "${BrandShortName}InstallerTest" "Write Test"
- ${If} ${Errors}
- StrCpy $TmpVal "HKCU" ; used primarily for logging
- ${Else}
- SetShellVarContext all ; Set SHCTX to HKLM
- DeleteRegValue HKLM "Software\Mozilla" "${BrandShortName}InstallerTest"
- StrCpy $TmpVal "HKLM" ; used primarily for logging
- ${un.RegCleanMain} "Software\Mozilla"
- ${un.RegCleanUninstall}
- ${un.DeleteShortcuts}
- ${EndIf}
-
- SetShellVarContext all ; Set SHCTX to HKLM
- ${un.GetSecondInstallPath} "Software\Mozilla" $R9
- ${If} $R9 == "false"
- SetShellVarContext current ; Set SHCTX to HKCU
- ${un.GetSecondInstallPath} "Software\Mozilla" $R9
- ${EndIf}
-
- StrCpy $0 "Software\Microsoft\Windows\CurrentVersion\App Paths\${FileMainEXE}"
- ${If} $R9 == "false"
- DeleteRegKey HKLM "$0"
- DeleteRegKey HKCU "$0"
- ${Else}
- ReadRegStr $R1 HKLM "$0" ""
- ${un.RemoveQuotesFromPath} "$R1" $R1
- ${un.GetParent} "$R1" $R1
- ${If} "$INSTDIR" == "$R1"
- WriteRegStr HKLM "$0" "" "$R9"
- ${un.GetParent} "$R9" $R1
- WriteRegStr HKLM "$0" "Path" "$R1"
- ${EndIf}
- ${EndIf}
-
- ; Remove directories and files we always control before parsing the uninstall
- ; log so empty directories can be removed.
- ${If} ${FileExists} "$INSTDIR\updates"
- RmDir /r /REBOOTOK "$INSTDIR\updates"
- ${EndIf}
- ${If} ${FileExists} "$INSTDIR\defaults\shortcuts"
- RmDir /r /REBOOTOK "$INSTDIR\defaults\shortcuts"
- ${EndIf}
- ${If} ${FileExists} "$INSTDIR\distribution"
- RmDir /r /REBOOTOK "$INSTDIR\distribution"
- ${EndIf}
- ${If} ${FileExists} "$INSTDIR\removed-files"
- Delete /REBOOTOK "$INSTDIR\removed-files"
- ${EndIf}
-
- ; Remove the updates directory for Vista and above
- ${un.CleanUpdatesDir} "Mozilla\Sunbird"
-
- ; Remove files that may be left behind by the application in the
- ; VirtualStore directory.
- ${un.CleanVirtualStore}
-
- ; Parse the uninstall log to unregister dll's and remove all installed
- ; files / directories this install is responsible for.
- ${un.ParseUninstallLog}
-
- ; Remove the uninstall directory that we control
- RmDir /r /REBOOTOK "$INSTDIR\uninstall"
-
- ; Remove the installation directory if it is empty
- ${RemoveDir} "$INSTDIR"
-
- ; If thunderbird.exe was successfully deleted yet we still need to restart to
- ; remove other files create a dummy thunderbird.exe.moz-delete to prevent the
- ; installer from allowing an install without restart when it is required
- ; to complete an uninstall.
- ${If} ${RebootFlag}
- ${Unless} ${FileExists} "$INSTDIR\${FileMainEXE}.moz-delete"
- FileOpen $0 "$INSTDIR\${FileMainEXE}.moz-delete" w
- FileWrite $0 "Will be deleted on restart"
- Delete /REBOOTOK "$INSTDIR\${FileMainEXE}.moz-delete"
- FileClose $0
- ${EndUnless}
- ${EndIf}
-
- ; Refresh desktop icons otherwise the start menu internet item won't be
- ; removed and other ugly things will happen like recreation of the app's
- ; clients registry key by the OS under some conditions.
- System::Call "shell32::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)"
-SectionEnd
-
-################################################################################
-# Language
-
-!insertmacro MOZ_MUI_LANGUAGE 'baseLocale'
-!verbose push
-!verbose 3
-!include "overrideLocale.nsh"
-!include "customLocale.nsh"
-!verbose pop
-
-; Set this after the locale files to override it if it is in the locale. Using
-; " " for BrandingText will hide the "Nullsoft Install System..." branding.
-BrandingText " "
-
-################################################################################
-# Page pre, show, and leave functions
-
-Function un.preWelcome
- ${If} ${FileExists} "$INSTDIR\distribution\modern-wizard.bmp"
- Delete "$PLUGINSDIR\modern-wizard.bmp"
- CopyFiles /SILENT "$INSTDIR\distribution\modern-wizard.bmp" "$PLUGINSDIR\modern-wizard.bmp"
- ${EndIf}
-FunctionEnd
-
-Function un.leaveWelcome
- ${If} ${FileExists} "$INSTDIR\${FileMainEXE}"
- Banner::show /NOUNLOAD "$(BANNER_CHECK_EXISTING)"
-
- ${If} "$TmpVal" == "FoundMessageWindow"
- Sleep 5000
- ${EndIf}
-
- ${PushFilesToCheck}
-
- ${un.CheckForFilesInUse} $TmpVal
-
- Banner::destroy
-
- ${If} "$TmpVal" == "true"
- StrCpy $TmpVal "FoundMessageWindow"
- ${un.ManualCloseAppPrompt} "${WindowClass}" "$(WARN_MANUALLY_CLOSE_APP_UNINSTALL)"
- StrCpy $TmpVal "true"
- ${EndIf}
- ${EndIf}
-FunctionEnd
-
-Function un.preConfirm
- ${If} ${FileExists} "$INSTDIR\distribution\modern-header.bmp"
- ${AndIf} $hHeaderBitmap == ""
- Delete "$PLUGINSDIR\modern-header.bmp"
- CopyFiles /SILENT "$INSTDIR\distribution\modern-header.bmp" "$PLUGINSDIR\modern-header.bmp"
- ${un.ChangeMUIHeaderImage} "$PLUGINSDIR\modern-header.bmp"
- ${EndIf}
-
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Settings" NumFields "3"
-
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 1" Type "label"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 1" Text "$(UN_CONFIRM_UNINSTALLED_FROM)"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 1" Left "0"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 1" Right "-1"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 1" Top "5"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 1" Bottom "15"
-
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 2" Type "text"
- ; The contents of this control must be set as follows in the pre function
- ; ${MUI_INSTALLOPTIONS_READ} $1 "unconfirm.ini" "Field 2" "HWND"
- ; SendMessage $1 ${WM_SETTEXT} 0 "STR:$INSTDIR"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 2" State ""
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 2" Left "0"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 2" Right "-1"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 2" Top "17"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 2" Bottom "30"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 2" flags "READONLY"
-
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 3" Type "label"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 3" Text "$(UN_CONFIRM_CLICK)"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 3" Left "0"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 3" Right "-1"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 3" Top "130"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 3" Bottom "150"
-
- ${If} "$TmpVal" == "true"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 4" Type "label"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 4" Text "$(SUMMARY_REBOOT_REQUIRED_UNINSTALL)"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 4" Left "0"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 4" Right "-1"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 4" Top "35"
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Field 4" Bottom "45"
-
- WriteINIStr "$PLUGINSDIR\unconfirm.ini" "Settings" NumFields "4"
- ${EndIf}
-
- !insertmacro MUI_HEADER_TEXT "$(UN_CONFIRM_PAGE_TITLE)" "$(UN_CONFIRM_PAGE_SUBTITLE)"
- ; The Summary custom page has a textbox that will automatically receive
- ; focus. This sets the focus to the Install button instead.
- !insertmacro MUI_INSTALLOPTIONS_INITDIALOG "unconfirm.ini"
- GetDlgItem $0 $HWNDPARENT 1
- System::Call "user32::SetFocus(i r0, i 0x0007, i,i)i"
- ${MUI_INSTALLOPTIONS_READ} $1 "unconfirm.ini" "Field 2" "HWND"
- SendMessage $1 ${WM_SETTEXT} 0 "STR:$INSTDIR"
- !insertmacro MUI_INSTALLOPTIONS_SHOW
-FunctionEnd
-
-Function un.leaveConfirm
- ; Try to delete the app executable and if we can't delete it try to find the
- ; app's message window and prompt the user to close the app. This allows
- ; running an instance that is located in another directory. If for whatever
- ; reason there is no message window we will just rename the app's files and
- ; then remove them on restart if they are in use.
- ClearErrors
- ${DeleteFile} "$INSTDIR\${FileMainEXE}"
- ${If} ${Errors}
- ${un.ManualCloseAppPrompt} "${WindowClass}" "$(WARN_MANUALLY_CLOSE_APP_UNINSTALL)"
- ${EndIf}
-FunctionEnd
-
-################################################################################
-# Initialization Functions
-
-Function .onInit
- ${UninstallOnInitCommon}
-FunctionEnd
-
-Function un.onInit
- ${un.GetParent} "$INSTDIR" $INSTDIR
- ${un.GetLongPath} "$INSTDIR" $INSTDIR
- ${Unless} ${FileExists} "$INSTDIR\${FileMainEXE}"
- Abort
- ${EndUnless}
-
- StrCpy $LANGUAGE 0
- ${un.SetBrandNameVars} "$INSTDIR\distribution\setup.ini"
-
- ; Initialize $hHeaderBitmap to prevent redundant changing of the bitmap if
- ; the user clicks the back button
- StrCpy $hHeaderBitmap ""
-
- !insertmacro InitInstallOptionsFile "unconfirm.ini"
-FunctionEnd
-
-Function .onGUIEnd
- ${OnEndCommon}
-FunctionEnd
-
-Function un.onGUIEnd
- ${un.OnEndCommon}
-FunctionEnd
diff --git a/calendar/installer/windows/nsis/updater_append.ini b/calendar/installer/windows/nsis/updater_append.ini
deleted file mode 100644
index 1b4bc1be7..000000000
--- a/calendar/installer/windows/nsis/updater_append.ini
+++ /dev/null
@@ -1,16 +0,0 @@
-; This Source Code Form is subject to the terms of the Mozilla Public
-; License, v. 2.0. If a copy of the MPL was not distributed with this
-; file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-
-; IMPORTANT: This file should always start with a newline in case a locale
-; provided updater.ini does not end with a newline.
-; Application to launch after an update has been successfully applied. This
-; must be in the same directory or a sub-directory of the directory of the
-; application executable that initiated the software update.
-[PostUpdateWin]
-; ExeRelPath is the path to the PostUpdateWin executable relative to the
-; application executable.
-ExeRelPath=uninstall\helper.exe
-; ExeArg is the argument to pass to the PostUpdateWin exe
-ExeArg=/PostUpdate
diff --git a/calendar/installer/windows/packages-static b/calendar/installer/windows/packages-static
deleted file mode 100644
index 580fbbf5d..000000000
--- a/calendar/installer/windows/packages-static
+++ /dev/null
@@ -1,362 +0,0 @@
-; Package file for Win32 static Sunbird build.
-;
-; Packaging manifest is used to copy files from dist/bin
-; to the staging directory.
-; Some other files are built in the staging directory directly,
-; so they will be implicitly packaged too.
-;
-; File format:
-;
-; [] designates a toplevel component. Example: [xpcom]
-; - in front of a file specifies it to be removed from the destination
-; * wildcard support to recursively copy the entire directory
-; ; file comment
-;
-
-#filter substitution
-
-[@AB_CD@]
-bin\chrome\@AB_CD@.jar
-bin\chrome\@AB_CD@.manifest
-bin\chrome\calendar-@AB_CD@.jar
-bin\chrome\calendar-@AB_CD@.manifest
-bin\chrome\sunbird-@AB_CD@.jar
-bin\chrome\sunbird-@AB_CD@.manifest
-bin\defaults\pref\sunbird-l10n.js
-bin\defaults\profile\prefs.js
-bin\defaults\profile\chrome\*
-bin\dictionaries\*
-bin\uninstall\helper.exe
-bin\update.locale
-bin\updater.ini
-
-[xpcom]
-bin\components\components.list
-bin\mozjs.dll
-bin\plc4.dll
-bin\plds4.dll
-bin\xpcom.dll
-bin\xpcom_core.dll
-bin\nspr4.dll
-bin\components\xpinstal.dll
-bin\components\jar50.dll
-bin\Microsoft.VC80.CRT.manifest
-bin\msvcm80.dll
-bin\msvcp80.dll
-bin\msvcr80.dll
-
-[calendar]
-; [Base Calendar Files]
-bin\application.ini
-bin\LICENSE
-bin\platform.ini
-bin\README.txt
-bin\sqlite3.dll
-bin\sunbird.exe
-
-; [Components]
-bin\AccessibleMarshal.dll
-bin\components\accessibility.xpt
-bin\components\accessibility-msaa.xpt
-bin\components\alerts.xpt
-bin\components\appshell.xpt
-bin\components\appstartup.xpt
-bin\components\autocomplete.xpt
-bin\components\autoconfig.xpt
-bin\components\calbase.xpt
-bin\components\calbasecomps.dll
-bin\components\calbaseinternal.xpt
-bin\components\caldav.xpt
-bin\components\caps.xpt
-bin\components\chardet.xpt
-bin\components\chrome.xpt
-bin\components\commandhandler.xpt
-bin\components\commandlines.xpt
-bin\components\composer.xpt
-bin\components\content_base.xpt
-bin\components\content_canvas.xpt
-bin\components\content_events.xpt
-bin\components\content_html.xpt
-bin\components\content_htmldoc.xpt
-bin\components\content_xmldoc.xpt
-bin\components\content_xslt.xpt
-bin\components\content_xtf.xpt
-bin\components\cookie.xpt
-bin\components\docshell_base.xpt
-bin\components\dom.xpt
-bin\components\dom_base.xpt
-bin\components\dom_canvas.xpt
-bin\components\dom_core.xpt
-bin\components\dom_css.xpt
-bin\components\dom_events.xpt
-bin\components\dom_geolocation.xpt
-bin\components\dom_html.xpt
-bin\components\dom_indexeddb.xpt
-bin\components\dom_json.xpt
-bin\components\dom_offline.xpt
-bin\components\dom_range.xpt
-bin\components\dom_sidebar.xpt
-bin\components\dom_storage.xpt
-bin\components\dom_stylesheets.xpt
-bin\components\dom_svg.xpt
-bin\components\dom_threads.xpt
-bin\components\dom_traversal.xpt
-bin\components\dom_views.xpt
-bin\components\dom_xbl.xpt
-bin\components\dom_xpath.xpt
-bin\components\dom_xul.xpt
-bin\components\downloads.xpt
-bin\components\editor.xpt
-bin\components\embed_base.xpt
-bin\components\extensions.xpt
-bin\components\exthandler.xpt
-bin\components\exthelper.xpt
-bin\components\fastfind.xpt
-bin\components\feeds.xpt
-bin\components\find.xpt
-bin\components\gfx.xpt
-bin\components\htmlparser.xpt
-bin\components\imgicon.xpt
-bin\components\imglib2.xpt
-bin\components\inspector.xpt
-bin\components\intl.xpt
-bin\components\jar.xpt
-bin\components\jsd3250.dll
-bin\components\jsdservice.xpt
-bin\components\layout_base.xpt
-#ifdef NS_PRINTING
-bin\components\layout_printing.xpt
-#endif
-bin\components\layout_xul.xpt
-bin\components\layout_xul_tree.xpt
-bin\components\locale.xpt
-bin\components\loginmgr.xpt
-bin\components\lwbrk.xpt
-bin\components\mimetype.xpt
-bin\components\mozfind.xpt
-bin\components\necko.xpt
-bin\components\necko_about.xpt
-bin\components\necko_cache.xpt
-bin\components\necko_cookie.xpt
-bin\components\necko_dns.xpt
-bin\components\necko_file.xpt
-bin\components\necko_ftp.xpt
-bin\components\necko_http.xpt
-bin\components\necko_res.xpt
-bin\components\necko_socket.xpt
-bin\components\necko_strconv.xpt
-bin\components\necko_viewsource.xpt
-bin\components\necko_wifi.xpt
-bin\components\parentalcontrols.xpt
-bin\components\places.xpt
-bin\components\plugin.xpt
-bin\components\pref.xpt
-bin\components\prefetch.xpt
-bin\components\profile.xpt
-bin\components\rdf.xpt
-bin\components\satchel.xpt
-bin\components\saxparser.xpt
-bin\components\shistory.xpt
-bin\components\spellchecker.xpt
-bin\components\storage.xpt
-bin\components\toolkitprofile.xpt
-bin\components\txmgr.xpt
-bin\components\txtsvc.xpt
-bin\components\uconv.xpt
-bin\components\unicharutil.xpt
-bin\components\update.xpt
-bin\components\uriloader.xpt
-bin\components\urlformatter.xpt
-bin\components\wcap.xpt
-bin\components\webBrowser_core.xpt
-bin\components\webbrowserpersist.xpt
-bin\components\webshell_idls.xpt
-bin\components\widget.xpt
-bin\components\windowds.xpt
-bin\components\windowwatcher.xpt
-bin\components\xpautocomplete.xpt
-bin\components\xpcom_base.xpt
-bin\components\xpcom_components.xpt
-bin\components\xpcom_ds.xpt
-bin\components\xpcom_io.xpt
-bin\components\xpcom_system.xpt
-bin\components\xpcom_thread.xpt
-bin\components\xpcom_xpti.xpt
-bin\components\xpconnect.xpt
-bin\components\xpinstall.xpt
-bin\components\xulapp.xpt
-bin\components\xuldoc.xpt
-bin\components\xultmpl.xpt
-bin\components\zipwriter.xpt
-
-; JavaScript components
-bin\components\calCompositeCalendar.js
-bin\components\calDavCalendar.js
-bin\components\calendarService.js
-bin\components\calICSCalendar.js
-bin\components\calImportExportModule.js
-bin\components\calItemModule.js
-bin\components\calMemoryCalendar.js
-bin\components\calStorageCalendar.js
-bin\components\calWcapCalendarModule.js
-bin\components\jsconsole-clhandler.js
-bin\components\NetworkGeolocationProvider.js
-bin\components\nsAddonRepository.js
-bin\components\nsBadCertHandler.js
-bin\components\nsBlocklistService.js
-bin\components\nsContentDispatchChooser.js
-bin\components\nsContentPrefService.js
-bin\components\nsDefaultCLH.js
-bin\components\nsDownloadManagerUI.js
-bin\components\nsExtensionManager.js
-bin\components\nsHandlerService.js
-bin\components\nsHelperAppDlg.js
-bin\components\nsLoginInfo.js
-bin\components\nsLoginManager.js
-bin\components\nsLoginManagerPrompter.js
-bin\components\nsProgressDialog.js
-bin\components\nsTryToClose.js
-#ifdef MOZ_UPDATER
-bin\components\nsUpdateService.js
-bin\components\nsUpdateServiceStub.js
-#endif
-bin\components\nsUpdateTimerManager.js
-bin\components\nsURLFormatter.js
-bin\components\nsWebHandlerApp.js
-bin\components\pluginGlue.js
-bin\components\storage-Legacy.js
-bin\components\storage-mozStorage.js
-bin\components\txEXSLTRegExFunctions.js
-bin\calendar-js\calAlarm.js
-bin\calendar-js\calAlarmMonitor.js
-bin\calendar-js\calAlarmService.js
-bin\calendar-js\calAttachment.js
-bin\calendar-js\calAttendee.js
-bin\calendar-js\calCachedCalendar.js
-bin\calendar-js\calCalendarManager.js
-bin\calendar-js\calCalendarSearchService.js
-bin\calendar-js\calDateTimeFormatter.js
-bin\calendar-js\calDavRequestHandlers.js
-bin\calendar-js\calEvent.js
-bin\calendar-js\calFilter.js
-bin\calendar-js\calFreeBusyService.js
-bin\calendar-js\calHtmlExport.js
-bin\calendar-js\calIcsImportExport.js
-bin\calendar-js\calIcsParser.js
-bin\calendar-js\calIcsSerializer.js
-bin\calendar-js\calItemBase.js
-bin\calendar-js\calItipItem.js
-bin\calendar-js\calListFormatter.js
-bin\calendar-js\calMonthGridPrinter.js
-bin\calendar-js\calOutlookCSVImportExport.js
-bin\calendar-js\calProtocolHandler.js
-bin\calendar-js\calRecurrenceInfo.js
-bin\calendar-js\calRelation.js
-bin\calendar-js\calTimezoneService.js
-bin\calendar-js\calTodo.js
-bin\calendar-js\calTransactionManager.js
-bin\calendar-js\calUtils.js
-bin\calendar-js\calWcapCalendar.js
-bin\calendar-js\calWcapCalendarItems.js
-bin\calendar-js\calWcapErrors.js
-bin\calendar-js\calWcapRequest.js
-bin\calendar-js\calWcapSession.js
-bin\calendar-js\calWcapUtils.js
-bin\calendar-js\calWeekInfoService.js
-bin\calendar-js\calWeekPrinter.js
-
-; [Modules]
-bin\modules\*
-
-; [Calendar Chrome Files]
-bin\chrome\calendar.jar
-bin\chrome\calendar.manifest
-bin\chrome\sunbird.jar
-bin\chrome\sunbird.manifest
-bin\chrome\classic.jar
-bin\chrome\classic.manifest
-bin\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}\chrome.manifest
-bin\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}\icon.png
-bin\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}\install.rdf
-bin\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}\preview.png
-bin\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}\chrome.manifest
-bin\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}\install.rdf
-bin\chrome\comm.jar
-bin\chrome\comm.manifest
-bin\chrome\toolkit.jar
-bin\chrome\toolkit.manifest
-; [Calendar Chrome Icons]
-bin\chrome\icons\default\calendar-alarm-dialog.ico
-bin\chrome\icons\default\calendar-event-dialog.ico
-bin\chrome\icons\default\calendar-event-summary-dialog.ico
-bin\chrome\icons\default\calendar-task-dialog.ico
-bin\chrome\icons\default\calendar-task-summary-dialog.ico
-
-; [calendar-timezones]
-bin\extensions\calendar-timezones@mozilla.org\install.rdf
-bin\extensions\calendar-timezones@mozilla.org\timezones.sqlite
-bin\extensions\calendar-timezones@mozilla.org\chrome.manifest
-bin\extensions\calendar-timezones@mozilla.org\chrome\calendar-timezones.jar
-bin\extensions\calendar-timezones@mozilla.org\chrome\calendar-timezones-@AB_CD@.jar
-bin\extensions\calendar-timezones@mozilla.org\defaults\preferences\preferences.js
-
-; [Default Preferences]
-; All the pref files must be part of base to prevent migration bugs
-bin\defaults\pref\sunbird.js
-bin\defaults\pref\channel-prefs.js
-bin\goanna.js
-bin\defaults\autoconfig\platform.js
-bin\defaults\autoconfig\prefcalls.js
-
-; [Layout Engine Resources]
-; Style Sheets, Graphics and other Resources used by the layout engine.
-bin\res\hiddenWindow.html
-bin\res\ua.css
-bin\res\html.css
-bin\res\quirk.css
-bin\res\forms.css
-bin\res\svg.css
-
-bin\res\arrowd.gif
-bin\res\viewsource.css
-bin\res\arrow.gif
-bin\res\loading-image.png
-bin\res\broken-image.png
-bin\res\fonts\*
-bin\res\dtd\*
-bin\res\html\folder.png
-bin\res\contenteditable.css
-bin\res\designmode.css
-bin\res\wincharset.properties
-bin\res\charsetalias.properties
-bin\res\charsetData.properties
-bin\res\langGroups.properties
-bin\res\language.properties
-bin\res\entityTables\*
-
-; [Personal Security Manager]
-;
-; NSS libraries are signed in the staging directory,
-; meaning their .chk files are created there directly.
-;
-bin\freebl3.dll
-bin\nss3.dll
-bin\nssckbi.dll
-bin\nssdbm3.dll
-bin\nssutil3.dll
-bin\smime3.dll
-bin\softokn3.dll
-bin\ssl3.dll
-bin\chrome\pippki.jar
-bin\chrome\pippki.manifest
-bin\components\pipboot.xpt
-bin\components\pipnss.xpt
-bin\components\pippki.xpt
-
-; [Updater]
-;
-bin\updater.exe
-
-; [Crash Reporter]
-bin\crashreporter.exe
-bin\crashreporter.ini
diff --git a/calendar/lightning/Makefile.in b/calendar/lightning/Makefile.in
index fb6d888ff..510c474b3 100644
--- a/calendar/lightning/Makefile.in
+++ b/calendar/lightning/Makefile.in
@@ -14,38 +14,8 @@ ifneq (,$(findstring a,$(LIGHTNING_VERSION)))
DEFINES += -DLIGHTNING_PRERELEASE_VERSION=1
endif
-# Enable nightly updates on aurora and nightly channel
-ifeq (nightly,$(subst aurora,nightly,$(MOZ_UPDATE_CHANNEL)))
-DEFINES += -DLIGHTNING_UPDATE_LOCATION=https://calendar.mozilla.org/update.php
-endif
-
-# Gecko milestone
-GRE_MILESTONE = $(shell $(PYTHON) $(MOZILLA_SRCDIR)/config/printconfigsetting.py $(DIST)/bin/platform.ini Build Milestone)
-ifdef GRE_MILESTONE
-DEFINES += -DGRE_MILESTONE=$(GRE_MILESTONE)
-endif
-
-# comm-central source repo and stamp
-SOURCE_STAMP ?= $(firstword $(shell hg -R $(topsrcdir) parent --template='{node}\n' 2>/dev/null))
-ifdef SOURCE_STAMP
-DEFINES += -DSOURCE_STAMP='$(SOURCE_STAMP)'
-endif
-
-SOURCE_REPO := $(shell hg -R $(topsrcdir) showconfig paths.default 2>/dev/null | sed -e 's/^ssh:/http:/')
-ifdef SOURCE_REPO
-DEFINES += -DSOURCE_REPO='$(SOURCE_REPO)'
-endif
-
-# Mozilla source repo and stamps
-MOZ_SOURCE_STAMP = $(firstword $(shell hg -R $(MOZILLA_SRCDIR) parent --template='{node}\n' 2>/dev/null))
-ifdef MOZ_SOURCE_STAMP
-DEFINES += -DMOZ_SOURCE_STAMP='$(MOZ_SOURCE_STAMP)'
-endif
-
-MOZ_SOURCE_REPO := $(shell hg -R $(MOZILLA_SRCDIR) showconfig paths.default 2>/dev/null | sed -e 's/^ssh:/http:/')
-ifdef MOZ_SOURCE_REPO
-DEFINES += -DMOZ_SOURCE_REPO='$(MOZ_SOURCE_REPO)'
-endif
+# Gecko milestone
+DEFINES += -DGRE_MILESTONE=$(shell tail -1 $(topsrcdir)/config/milestone.txt)
# Install as a global extension in
# dist/bin/extensions/
@@ -60,8 +30,7 @@ DEFINES += -DTHUNDERBIRD_VERSION=$(THUNDERBIRD_VERSION) \
-DXPI_EM_ID=$(XPI_EM_ID) \
$(NULL)
-MOZ_BUILDID = $(shell $(PYTHON) $(MOZILLA_SRCDIR)/config/printconfigsetting.py $(DIST)/bin/application.ini App BuildID)
-DEFINES += -DMOZ_BUILDID=$(MOZ_BUILDID)
+DEFINES += -DMOZ_BUILDID=20100101
include $(topsrcdir)/config/rules.mk
include $(srcdir)/versions.mk
diff --git a/calendar/lightning/lightning-packager.mk b/calendar/lightning/lightning-packager.mk
index 8e36ce1b7..15fcedb07 100644
--- a/calendar/lightning/lightning-packager.mk
+++ b/calendar/lightning/lightning-packager.mk
@@ -20,7 +20,7 @@
# LIGHTNING_VERSION = 2.2 # Will be used to replace the Thunderbird version
# # in POST_UPLOAD_CMD
-include $(MOZILLA_SRCDIR)/system/installer/package-name.mk
+include $(MOZILLA_SRCDIR)/calendar/installer/package-name.mk
# Set the univeral path only if we are building a univeral binary and it was
# not restricted by the calling makefile
diff --git a/calendar/moz.build b/calendar/moz.build
index 2dab88966..6b7445d0c 100644
--- a/calendar/moz.build
+++ b/calendar/moz.build
@@ -3,8 +3,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-CONFIGURE_SUBST_FILES += ['installer/Makefile']
-
if CONFIG['MOZ_CALENDAR']:
DIRS += [
'lightning',
diff --git a/calendar/timezones/Makefile.in b/calendar/timezones/Makefile.in
index 1be195f67..eb7004c80 100644
--- a/calendar/timezones/Makefile.in
+++ b/calendar/timezones/Makefile.in
@@ -4,7 +4,7 @@
XPI_PKGNAME = calendar-timezones-$(TIMEZONES_VERSION)
-THUNDERBIRD_VERSION := $(shell cat $(topsrcdir)/mail/config/version.txt)
+THUNDERBIRD_VERSION := $(shell cat $(topsrcdir)/apps/mail/config/version.txt)
SEAMONKEY_VERSION := "2.49"
CALENDAR_VERSION := $(shell $(PYTHON) $(topsrcdir)/calendar/lightning/build/makeversion.py $(word 1,$(MOZ_PKG_VERSION) $(THUNDERBIRD_VERSION)))
TIMEZONES_VERSION := $(shell $(PYTHON) $(srcdir)/version.py)