Closed Bug 222101 Opened 21 years ago Closed 1 month ago

loadResource does not work in installer

Categories

(Core Graveyard :: Installer: XPInstall Engine, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: opi, Unassigned)

Details

Attachments

(1 file)

The german lang pack (langdeAT) can't be installed from an installer, but from
browser.

It seems that the loadResource doesn't loaded correctly while installing.

var messages = loadResources("install.properties");

always return true, but if you later try 

alertstring = messages.install_successglobal;

you get an error cause messages.install_successglobal does not exists.
An example xpi will follow.
There is a(an other?) problem with the xpi on my current build on win95.

There are 3 alert boxes.
Installing from Browser!
First time you install the xpi you get:
1st box: undefined
2nd box: undefined
3rd box: Successfully installed ...

Second time:
1st box: Hello world
2nd box: undefined
3rd box: Successfully installed ...

Third time:
1st box: Hello world
2nd box: Yo Hello, all ok.
3rd box: undefined

If you remove the xpinstall(*).properties from your temp directory then it
starts as first install.
But this shouldn't happen ... and maybe this is the problem in the installer
builds.

Maybe that you don't see the 3rd message ... it comes from the langdeAT.xpi
install.properties
Ok, comment #1 only happen, if you have installed the langdeAT.xpi without
restarting mozilla.
This shouldn't happen, but maybe needs another bugreport.
Found in Bug 220095 Navigator->Languages for Web Pages empty, wrong character coding
that properties files are missing from /Mozilla/res/, if you use the exe
installers, zip install is working, see bug 220095 comment 18
Regressed between 2003091209 (working) and 2003091510 (failing)
Also see bug 12482 and bug 9272 (not sure about dependencies).
They are no depencies but one other problem and one other feature for XPInstall.
Assignee: xpi-engine → nobody
QA Contact: xpi-engine
Product: Core → Core Graveyard
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: