Bug 502933: mobile installer changes to enable custom non-CAB installer, r=blassey
authorAlex Pakhotkin <alexp@mozilla.com>
Fri, 13 Nov 2009 15:18:16 -0800
changeset 65796 d15b3a77ab43d411ccc84629cfc804117ba6f86c
parent 65795 2045c04d020e18ff999c1ce812541aa2c0445c94
child 65797 3a12470f78a3d90a815f9a81eff76da73d529647
push idunknown
push userunknown
push dateunknown
reviewersblassey
bugs502933
Bug 502933: mobile installer changes to enable custom non-CAB installer, r=blassey
mobile/installer/Makefile.in
mobile/locales/en-US/installer/setup.ini
--- a/mobile/installer/Makefile.in
+++ b/mobile/installer/Makefile.in
@@ -155,17 +155,18 @@ endif
 ifeq ($(OS_TARGET),WINCE)
 
 VSINSTALLDIR ?= $(error VSINSTALLDIR not set, must be set to the Visual Studio install directory)
 
 UNPACKAGE = $(LIBXUL_DIST)/xulrunner*$(PKG_SUFFIX)
 
 installer: stage-package package-xulrunner
 	$(NSINSTALL) -D $(DIST)/$(PKG_PATH)
-	cd $(DIST) && $(PYTHON) $(topsrcdir)/build/package/wince/make_wince_cab.py $(CABARGS) "$(VSINSTALLDIR)/SmartDevices/SDK/SDKTools/cabwiz.exe" "$(MOZ_PKG_DIR)" "$(MOZ_APP_DISPLAYNAME)" "$(PKG_PATH)$(PKG_BASENAME).cab" && $(ZIP) -r9D $(PACKAGE) $(MOZ_PKG_DIR) && echo "Installer $(PKG_PATH)$(PKG_BASENAME).cab created!"
+	$(NSINSTALL) $(srcdir)/../locales/$(AB_CD)/installer/setup.ini $(DIST)
+	cd $(DIST) && mv $(MOZ_PKG_DIR)/xulrunner/uninstall.exe $(MOZ_PKG_DIR)/ && 7z a $(PKG_PATH)$(PKG_BASENAME).7z $(MOZ_PKG_DIR) setup.ini -x!$(MOZ_PKG_DIR)/xulrunner/xulrunner-stub-installer.sfx && cat $(MOZ_PKG_DIR)/xulrunner/xulrunner-stub-installer.sfx $(PKG_PATH)$(PKG_BASENAME).7z>$(PKG_PATH)$(PKG_BASENAME).exe && rm $(PKG_PATH)$(PKG_BASENAME).7z && rm setup.ini
 
 endif
 
 DEB_BUILD_ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH)
 # package name comes from mobile/installer/debian/changelog.in
 DEB_PKG_NAME  = $(MOZ_PKG_APPNAME)_$(MOZ_APP_VERSION)_$(DEB_BUILD_ARCH).deb
 # relative to $(DIST)
 UPLOAD_EXTRA_FILES += ../mobile/$(DEB_PKG_NAME)
new file mode 100644
--- /dev/null
+++ b/mobile/locales/en-US/installer/setup.ini
@@ -0,0 +1,17 @@
+; This file is in the UTF-8 encoding
+[Strings]
+AppShortName=Fennec
+AppLongName=Mozilla Fennec
+WindowCaption=Mozilla Fennec Setup
+InstallTo=Install Fennec to
+Install=Install
+Cancel=Cancel
+InstalledSuccessfully=Mozilla Fennec has been installed successfully.
+ExtractionError=Archive extraction error:
+ThereWereErrors=There were errors during installation:
+CreatingUserProfile=Creating user profile. Please wait...
+UninstallCaption=Mozilla Fennec Uninstall
+FilesWillBeRemoved=All files will be removed from
+AreYouSure=Are you sure?
+InstallationNotFound=Mozilla Fennec installation not found.
+UninstalledSuccessfully=Mozilla Fennec has been uninstalled successfully.