CCK only - not part of build
Only use the ZipWritercomponent if a zip EXE isn't specified.
also, if ZipWriterComponent fails, try zip.exe
This commit is contained in:
mkaply%us.ibm.com 2006-05-16 19:49:48 +00:00
parent 2607a65d20
commit 762154f53a

View File

@ -1086,7 +1086,7 @@ function CCKZip(zipfile, location)
file.remove(false);
} catch (ex) {}
if (Components.interfaces.IZipWriterComponent) {
if ((document.getElementById("zipLocation").value == "") && (Components.interfaces.IZipWriterComponent)) {
var archivefileobj = location.clone();
archivefileobj.append(zipfile);
@ -1140,11 +1140,10 @@ function CCKZip(zipfile, location)
}
zipwriterobj.commitUpdates();
} catch (e) {
gPromptService.alert(window, "", "ZIPWriterComponent error");
}
return;
} catch (e) {
gPromptService.alert(window, "", "ZIPWriterComponent error - attempting ZIP");
}
}
var zipLocation = document.getElementById("zipLocation").value;