Skip to content
⌘ NSIS Forum Archive

Folders in zip

12 posts

Kerzh#

Folders in zip

Hi, again.

I have one more question.
Can i get list of files/folders in ZIP archive without unpacking? Or check is file/folder exists in ZIP.

Thank you.
Afrow UK#
You'd need to find a command line program to do this, include it in the installer and execute it at run time.

-Stu
Afrow UK#

This should be the same unzip.exe that I use. It has a -Z option to display information about Zip files.

-Stu
Kerzh#
Sorry, but does this util maintain long names?
i try to UNZIP.EXE -Z -1 mysql-noinstall-4.1.20-win32.zip
but it return that "can't find mysql-noinstall-4.1.20-win32.zip "

Thank you.
Afrow UK#
Not sure. Make sure you SetOutPath first though to the directory that that zip file resides in.

-Stu
Afrow UK#
Works fine for me on files called:
mysql-noinstall-4.1.20-win32.zip
hellohellohellohellohellohellohellohellohello.zip

If the Zip file is in the same folder as unzip.exe then it will work. Otherwise you need to specify the full path to the Zip file in quotes:

... '"path\to\unzip.exe" -Z -1 "path\to\file.zip"'

-Stu
Kerzh#
Do you use util unzip.exe from http://www.th-soft.com/e_unzip.htm?

I run it from far and by nsis with same effect🙁(
Perhaps, we use different utils?

Sorry for perseverance, but need to make this task urgently.