fix 229627 - installer creates wrong keys for java on windows

This commit is contained in:
ben%bengoodger.com 2004-01-29 02:45:43 +00:00
Родитель 4d2ec27f4f
Коммит 4fe859ef08
1 изменённых файлов: 13 добавлений и 0 удалений

Просмотреть файл

@ -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,"");