зеркало из https://github.com/mozilla/pjs.git
doh! followup win32 fix for Bug 349551
This commit is contained in:
Родитель
7d9f14d669
Коммит
1fda988890
|
@ -664,12 +664,14 @@ function updateRegistry(rootKey) {
|
|||
var uninstString = uninst.path;
|
||||
nameWithVersion = oldInstall.fullName + " (" + oldInstall.version + ")";
|
||||
try {
|
||||
key.open(rootKey, uninstallRoot, key.ACCESS_READ);
|
||||
key.open(rootKey, uninstallRoot + "\\" + nameWithVersion, key.ACCESS_READ);
|
||||
var regUninstString = key.readStringValue("UninstallString");
|
||||
if (regUninstString != uninstString) {
|
||||
LOG("\n\nupdating UninstallString registry value\n\n");
|
||||
createRegistryKeys(key, { name: nameWithVersion,
|
||||
values: ["UninstallString", uninstString] });
|
||||
LOG("updating UninstallString registry value");
|
||||
key.close();
|
||||
key.open(rootKey, uninstallRoot, key.ACCESS_READ);
|
||||
createRegistryKeys(key, { name: nameWithVersion,
|
||||
values: ["UninstallString", uninstString] });
|
||||
} else {
|
||||
LOG("registry is up-to-date");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче