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