зеркало из https://github.com/mozilla/pjs.git
fix 229627 - installer creates wrong keys for java on windows
This commit is contained in:
Родитель
4d2ec27f4f
Коммит
4fe859ef08
|
@ -2,6 +2,7 @@ function registerProgramFolderKey(winreg, fFolderPath)
|
|||
{
|
||||
var subkey;
|
||||
var err;
|
||||
var szCurrentMozillaVersion;
|
||||
|
||||
/* set the Program Folder Path in the Mozilla key in the Windows Registry */
|
||||
winreg.createKey("SOFTWARE\\$CompanyName$","");
|
||||
|
@ -10,6 +11,18 @@ function registerProgramFolderKey(winreg, fFolderPath)
|
|||
winreg.createKey(subkey,"");
|
||||
err = winreg.setValueString(subkey, "CurrentVersion", "$UserAgent$");
|
||||
|
||||
subkey = "SOFTWARE\\$CompanyName$\\Mozilla";
|
||||
szCurrentMozillaVersion = winreg.getValueString(subkey, "CurrentVersion");
|
||||
logComment("szCurrentMozillaVersion: " + szCurrentMozillaVersion);
|
||||
|
||||
if((szCurrentMozillaVersion == "") || (szCurrentMozillaVersion == null))
|
||||
{
|
||||
/* we *MUST* have a Mozilla CurrentVersion key for the Java plugin to work with Firebird - bug 229627 */
|
||||
subkey = "SOFTWARE\\$CompanyName$\\Mozilla";
|
||||
winreg.createKey(subkey,"");
|
||||
err = winreg.setValueString(subkey, "CurrentVersion", "1.6");
|
||||
}
|
||||
|
||||
subkey = "SOFTWARE\\$CompanyName$\\$ProductName$\\$UserAgent$";
|
||||
winreg.createKey(subkey,"");
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче