Compress 7Zip

Got a problem you cannot solve? Try here.
AdrianGray
Posts: 32
Joined: Fri Jul 25, 2014 5:21 am

Compress 7Zip

Postby AdrianGray » Thu Jul 31, 2014 7:44 pm

I am having an issue with Compress 7Zip in as much as it will compress all files and sub-folders except the "bin" folder of my web app. I get an error #1018 which I cannot find an explanation for. Is there a list of error codes with an associated explanation? Is there something in the 7zip string that is preventing this folder from being archived? Thanks, Adrian.

~InstallAware Clipboard Data~
~Compress 7Zip Archive~
~{3C2D8D7D-1F7B-4B61-975C-1FA77FA2BBF6}~
~$SpiderBackupPath$~
~~
~$TARGETDIR$\*.*~
~~
~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~
~XMLTemp~

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

Re: Compress 7Zip

Postby FrancescoT » Fri Aug 01, 2014 11:21 am

Please try with the attached project.

Regards
Attachments
7ziptest.rar
(2.13 MiB) Downloaded 339 times
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

AdrianGray
Posts: 32
Joined: Fri Jul 25, 2014 5:21 am

Re: Compress 7Zip

Postby AdrianGray » Sun Aug 03, 2014 6:45 pm

Sorry, no joy. I have since found a setting that works however the sample code you provided still gives a #1018 error which I have no reference to find out what it means. The parameters I am using has -ms=off and -mhc=off Is there any documentation to these error codes or even an explanation of what these switches mean? The error only occurred when a "Bin" folder with .dll's was included. All other folders worked fine. Thanks, Adrian.

<<< Working call >>>
~InstallAware Clipboard Data~
~Compress 7Zip Archive~
~{78475290-70EB-4EDD-8D21-3FA8B1DCCAAF}~
~$SpiderBackupPath$~
~~
~$TARGETDIR$\*.*~
~~
~0~
~-ssw -ms=off -mhc=off -mhe=on -mmt=on -m0=None -m0=Copy~
~TRUE~
~FALSE~
~FALSE~
~XMLTemp~

<<< Error 1018 using same parameters, different 7zip parameters >>>
~InstallAware Clipboard Data~
~Compress 7Zip Archive~
~{6246F7EB-A32F-4C05-A50D-DA15DD4F3460}~
~$SpiderBackupPath$~
~~
~$TARGETDIR$\*.*~
~~
~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~
~XMLTemp~

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

Re: Compress 7Zip

Postby FrancescoT » Mon Aug 04, 2014 10:03 am

Dear Adrian,

I suppose that the error code is refered to an OS error code, instead of an error returned by the compression process itself.

Are you sure that dll is not used by another process when you run your code?

Could you release a very minimal project that replicates your issue?

For a list of the 7zip switches, please refer to the 7zip documentation.
http://sevenzip.sourceforge.jp/chm/cmdline/switches/
http://sevenzip.sourceforge.jp/chm/cmdline/syntax.htm
http://www.dotnetperls.com/7-zip-examples

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

AdrianGray
Posts: 32
Joined: Fri Jul 25, 2014 5:21 am

Re: Compress 7Zip

Postby AdrianGray » Thu Aug 07, 2014 3:56 am

Thanks for the links. Unfortunately I am unable to replicate the issue with a cut down version of the installer but I am pleased to have it working. Regards, Adrian.

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

Re: Compress 7Zip

Postby FrancescoT » Thu Aug 07, 2014 4:31 am

I am happy you solved :D !

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 119 guests