Forum: UltraISO
Topic: Compress .iso to .isz via command line?
started by: highend

Posted by highend on Aug. 23 2007,19:50
Hi,

does the latest UltraISO have command line parameters to compress an .iso image to .isz format and vice versa (from .isz to iso with a dialog that asks for the password?

Btw password... Which encryption method is used for the stored registry entry (for the password)?

Tia,
Highend

Posted by xoben on Aug. 23 2007,21:43
< http://www.ezbsystems.com/ultraiso/cmdline.htm >

QUOTE

-bin2iso filename   Convert input CD/DVD image to ISO format          

-bin2isz filename   Compress input CD/DVD image to ISZ format

-compress n         Set compression level, n = 1-6
-encrypt x            Set encrypty method, x = 1-3
-password pass_word_string         Set password
-split split_size      Set segment size in byte



Posted by highend on Aug. 24 2007,04:17
Thank you xoben,

I read the UltraISO Help file before I went to the forum and these command line parameters were missing there ;)

ATM the current way is a bit inflexible.

I use a .reg file to add a few commands to the right click context menu for different file formats.

For example:

CODE

[HKEY_CURRENT_USER\Software\Classes\Alcohol Image File\shell\open\command]
@="\"D:\\Work\\Tools\\UltraISO\\UltraISO.exe\" \"%1\""

[HKEY_CURRENT_USER\Software\Classes\Alcohol Image File\shell\Convert to ISO]

[HKEY_CURRENT_USER\Software\Classes\Alcohol Image File\shell\Convert to ISO\command]
@="\"D:\\Work\\Tools\\UltraISO\\UltraISO.exe\" -bin2iso \"%1\""


So when I rightclick on a .mds or .mdf file I get the option to convert it to a standard iso file.

With the current command line options this shouldn't be used with .iso -> .isz files in the same way.

Why?

The password to protect the .isz file would be stored in clear text in the registry. If you don't supply a password the .isz is unprotected and UltraISO does not use the one that you entered in the options window before (that is stored in "ISZKey" afterwards).

So I have two feature requests:

1. Change the command line parameter -password to
-password FromISZKey|FromPortableFile|<password in clear text>.

FromISZKey: UltraISO allows you to enter a key in the configuration settings that is stored (encrypted) in the registry. When you use -password FromISZKey in the command line UltraISO looks up the key in the registry and uses it.

FromPortableFile: A few threads under this one I asked if UltraISO would support a .xml | .ini file in the future to make it more portable because without existing registry entries it won't write any if you start it without installing it first. So this is an option when a more portable version comes out and uses the password that is stored in the .xml | .ini file.

<password in clear text>: Same behaviour like now.

2. Add -isz2iso as a parameter. If UltraISO recognizes the file was protected with a password and you didn't use -password FromISZKey|FromPortableFile|<password in clear text> it should prompt the user to enter it (unless it was invoked with -silent which would terminate the process).

Would you be so kind to answer my second question from the initial thread? (Which encryption method is used for the stored registry entry (for the password)?)

Regards,
Highend

Posted by Galapo on Aug. 26 2007,23:02

(xoben @ Aug. 24 2007,01:43)
QUOTE
QUOTE

-compress n         Set compression level, n = 1-6

Is 1 the heaviest compression or is 6? Perhaps this needs to be spelt out explicitly in the help file.

Regarding -encrypt x, I assume 1 is AES128, 2 is AES192, and 3 is AES256?

Regards,
Galapo.

Posted by xoben on Aug. 27 2007,09:11
QUOTE
Is 1 the heaviest compression or is 6?

1 - Fastest
6 - Heavy

QUOTE
Regarding -encrypt x, I assume 1 is AES128, 2 is AES192, and 3 is AES256?

2 - AES128
3 - AES192
4 - AES256



Posted by Galapo on Aug. 27 2007,18:13
Thanks xoben for that information.

I'm going to change a few batch files now knowing this...

Thanks,
Galapo.

Posted by picurael on Jul. 21 2008,07:09
thank you for this info, I didn't find it in ultraiso's help file (iso2isz command line argument parameter), and I didn't think it would be on their website's help page because I have the last version.. fortunately I found this forum thread on google. thanks again. ultraiso is one of my favorite software and i wish I had the money to afford buying it because it deserves supporting.
Posted by Obsidian-step on May 12 2011,18:09
Hi.
May it possible to compress Folder to *isz from shell?

Posted by zsqzsqzsq on May 18 2012,04:07
@echo off
rem &#26412;&#25209;&#22788;&#29702;&#20316;&#29992;&#26159;&#20026;&#20102;&#25226;&#29616;&#25104;&#30340;ISO&#25991;&#20214;&#36716;&#25442;&#25104;ISZ&#25991;&#20214;
title ISO2ISZ
echo &#27491;&#22312;&#25226;%1&#25991;&#20214;&#20174;ISO&#26684;&#24335;&#36716;&#25442;&#20026;ISZ&#26684;&#24335;...


if exist "%ProgramFiles%\UltraISO\UltraISO.exe" (
   if not exist "%ProgramFiles%\UltraISO\ISO2ISZ.CMD" COPY "%~f0" "%ProgramFiles%\UltraISO\ISO2ISZ.CMD"
   goto DO_ISO2ISZ
)

if exist "%ProgramFiles(x86)%\UltraISO\UltraISO.exe" (
   if not exist "%ProgramFiles(x86)%\UltraISO\ISO2ISZ.CMD" COPY "%~f0" "%ProgramFiles(x86)%\UltraISO\ISO2ISZ.CMD"
   goto DO_ISO2ISZ
) else (
   echo "UltraISO&#31243;&#24207;&#19981;&#23384;&#22312;&#65281;"
   pause
   goto END
)

:DO_ISO2ISZ
if exist "%ProgramFiles%\UltraISO\UltraISO.exe" set ULTRAISO="%ProgramFiles%\UltraISO\UltraISO.exe"
if exist "%ProgramFiles(x86)%\UltraISO\UltraISO.exe" set ULTRAISO="%ProgramFiles(x86)%\UltraISO\UltraISO.exe"

%ULTRAISO% -compress 6 -bin2isz %1 -output "%~dpn1.isz"
rem &#20351;&#29992;%ULTRAISO% -compress 6 -input %1 -output "%~dpn1.isz"&#21387;&#32553;&#24471;&#21040;&#30340;ISZ&#25991;&#20214;&#35299;&#21387;&#32553;&#20986;&#29616;&#26469;&#30340;&#25991;&#20214;&#20250;&#19982;&#21407;&#25991;&#20214;&#26816;&#39564;&#30721;&#19981;&#19968;&#33268;(ultraiso&#29256;&#26412;9.5.2.2836)

if  %errorlevel% neq 0 (
   echo %1&#21387;&#32553;&#22833;&#36133;&#65281;
   del "%~dpn1.isz"
   pause
   goto END
)

rem &#25353;&#36947;&#29702;&#35828;&#65292;&#21387;&#32553;&#21518;&#36820;&#22238;errorlevel&#20026;0&#65292;&#23601;&#35828;&#26126;&#21387;&#32553;&#25104;&#21151;&#65307;&#21487;&#20026;&#20102;&#20445;&#38505;&#36215;&#35265;&#65292;&#36824;&#24819;&#22312;ISZ&#27979;&#35797;&#25104;&#21151;&#21518;&#20877;&#21024;&#38500;&#21407;ISO&#25991;&#20214;&#12290;
rem %ULTRAISO% -verify "%~dpn1.isz"
if  %errorlevel% equ 0 (
   echo %1&#21387;&#32553;&#25104;&#21151;&#65281;
 
   del %1
)

:END

rem &#21491;&#38190;&#33756;&#21333;&#35843;&#29992;&#35813;&#25209;&#22788;&#29702;&#30340;&#27880;&#20876;&#34920;&#65292;&#35831;&#26681;&#25454;X64&#65292;X86&#23545;&#36335;&#24452;&#20316;&#30456;&#24212;&#30340;&#20462;&#25913;&#12290;
rem Windows Registry Editor Version 5.00
rem
rem [HKEY_CLASSES_ROOT\.iso]
rem @="UltraISO"
rem
rem [HKEY_CLASSES_ROOT\UltraISO\shell\ISO2ISZ]
rem @="&#21387;&#32553;&#20026;ISZ&#26684;&#24335;"
rem
rem [HKEY_CLASSES_ROOT\UltraISO\shell\ISO2ISZ\command]
rem @="\"C:\\Program Files (x86)\\UltraISO\\ISO2ISZ.cmd\" \"%1\""
rem

Posted by zsqzsqzsq on May 18 2012,04:09
I want to know how to test .ISZ via command line.
Posted by austing on Jun. 23 2012,16:04
hi Zsq, got any updates on this case?
Posted by meilinanhai on Oct. 02 2014,23:28
Hi,xoben:
i have a problem, how to set the total size of *.isz file by command line?
if the size of *.isz file is overloaded? does this matter?
thanks!