Correct Syntax for Compressing new 7Zip Container?

Got a problem you cannot solve? Try here.
mentalmaniac76
Posts: 4
Joined: Wed Nov 13, 2013 11:05 am

Correct Syntax for Compressing new 7Zip Container?

Postby mentalmaniac76 » Wed Nov 13, 2013 11:12 am

Hey all,

I have searched and searched but cannot seem to find an answer to this one.

A little bit of backstory:
I am attempting to first unzip an existing container, add files to the folder in which I extracted to and modify certain config files, delete the old container, and create a new zip container with all of the files mentioned.

Everything except for the creation of the new zip container is working fine. I am able to extract, modify and then delete the original container without problems.

I have been attempting to use Compress 7Zip Archive within Installaware but cannot seem to get it right. I am not receiving any errors and the program does not seem to be able to even create an empty container.

I believe I am doing something wrong but cannot determine what since I have no direction as to what is happening. Any direction would be appreciated. (some example scripts within the F1 menu would be helpful :) )

I am an open book so please, if it helps you understand my issue, ask away.

mentalmaniac76
Posts: 4
Joined: Wed Nov 13, 2013 11:05 am

Re: Correct Syntax for Compressing new 7Zip Container?

Postby mentalmaniac76 » Wed Nov 13, 2013 11:17 am

I guess some actual code would help (duh ;) )

So the original zip lies within the support directory but it is deleted by the time we get to this directive.
The files I wish to add are located within a folder named ROOT within the support directory.
I wish to create the new zip directly within the support directory (I will be transferring files later on).

Within the Compress 7Zip Archive dialog:

Archive: $SUPPORTDIR$\ROOT.zip

Password: __blank__

Recursive File Set: "$SUPPORTDIR$\ROOT\" <= I have tried all combinations of *.* | * | \* | (no slash) etc without success

Non-Recursive File Set: __blank__

Archive Type: ZIP

Everything else default. (Folder path storage set to Relative)

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Correct Syntax for Compressing new 7Zip Container?

Postby FrancescoT » Thu Nov 14, 2013 8:59 am

Dear User,

which is the return code of the executed "Compress 7Zip Archive" command?
... you need to add a return code variable to the "Return Success State in Variable" command parameter.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

mentalmaniac76
Posts: 4
Joined: Wed Nov 13, 2013 11:05 am

Re: Correct Syntax for Compressing new 7Zip Container?

Postby mentalmaniac76 » Thu Nov 14, 2013 10:27 am

Hey FrancescoT,

Thanks for the reply. I have today figured out a different method of creating the zip file however. I am now using a vbscript in order to do so and it is working well.

If I have the time to come back and test this method out some more I will reply with the results of following your instructions.

Thanks again

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Correct Syntax for Compressing new 7Zip Container?

Postby FrancescoT » Fri Nov 15, 2013 12:54 pm

... anyway, I suppose you used the command incorrectly.

For example;

supposing that it is required to create a "7zip" archive of the file "testapp.exe" located under "SUPPORTDIR", these are the correct parameter to use;

Code: Select all

~InstallAware Clipboard Data~
~Compress 7Zip Archive~
~{410174A1-6DD2-444E-9030-16BBCD5EBBD0}~
~$SUPPORTDIR$\TestApp.7zip~
~~
~~
~$SUPPORTDIR$\TestApp.exe~
~0~
~-ssw -ms=on -mhc=on -mhe=on -mmt=2 -m0=BCJ2 -m1=LZMA2 -m1d=26 -m1mf=bt4 -m1fb=64 -m2=LZMA2 -m2d=20 -m2mf=bt4 -m2fb=64 -m3=LZMA2 -m3d=20 -m3mf=bt4 -m3fb=64 -mb0:1 -mb0s1:2 -mb0s2:3~
~TRUE~
~FALSE~
~FALSE~
~SUCCESS~


Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 74 guests