I bundle my Ruby application in a zip file that I created using Rubyzip (0.9.1, installed with Windows Installer 1.8.6-26) that fails to cleanly unzip on Vista.
Vista complains with error code 0x80004005 ("unspecified error") from its own Extract All command whenever it tries to unzip a subdirectory in the zip file. You can retry, skip, or cancel. Retrying causes the same error. Skipping gets past the problem
and the subdirectory and its contents are unzipped correctly.
I am including the rakefile below that I use to create the zip:
print "IAN packager\n"
print "This rakefile requires that rubyzip has been installed\n"
IAN = "Ian.zip"
Dir[fileSpec].each do | filename |
print "Zipping ",filename,"\n"
Dir.entries(directory).each do | filename |
next if filename == "." or filename == ".."
print "Zipping ",directory,"\",filename,"\n"
name = directory + "\" + filename
task :default => [:build]
file IAN => dependencies do |t|
print "Building ",t.name,"\n"
File.delete(IAN) if FileTest.exists?(IAN)
Zip::ZipFile.open(IAN, Zip::ZipFile::CREATE) do |zipFile|
print t.name," built!\n"
task :build => [IAN] do