PDA

View Full Version : SB Created Zip - Blank Root Folder



NewsArchive
04-11-2009, 03:15 AM
I am using the Zip function(recursive) in SB to zip up my install folder
before installing a new version of my app. The following line is copied
from my SB Script.

Zip Files from "%_SB_INSTALLDIR%\*.*" to
"%_CSIDL_COMMON_DOCUMENTS%\MyApp\InstallBK-%CURRENT_DATE%"

Problem: this is creating a zip file where the first folder inside the zip
has no name. Windows Explored can not even see the "no name" folder. If I
use a zip program, like 7Zip, then I can see the blank folder and then move
into it and see the actual zip data.

I have attached a image that has 2 screenshots. The first screenshot is to
show that the zip file does exist with the name I gave it. The 2nd
screenshot shows what the 1st level of the zip looks like via 7Zip.

What am I not doing right with the zip command?

David Ault

NewsArchive
04-13-2009, 07:04 AM
David,

Neither the built-in Windows ZIP nor 7Zip follow 100% the 2.04g ZIP
industry-standard for recursive added files/folders. That's why you do not
see the first folder (or no files/folders at all in Explorer). If you use
WinZip (or PKZIP) to open your perfectly valid ZIP then I am sure you'll see
all files and folders.

BTW, ZIP de-/compression is done using LSZip (100% compatible with the 2.04g
ZIP archive industry-standard, LSZip introduced recursive zip-compression in
1997).

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
04-13-2009, 07:05 AM
That is also why when needing to create empty folder trees I always add there an empty txt file called 'delete.me' ... thus creating the folder and seing it in Windows explorer

Cordialement - Best regards
Jean-Pierre GUTSATZ

CGF

DMC - Data Management Center
A tool to let you Migrate Import Export Transfer your Data
www.dmc-fr.com
Certified by Microsoft : "Works with Vista" &
"Works with Windows Server 2008"

NewsArchive
04-14-2009, 01:53 AM
Thank you for the explanation.

David Ault