Page 1 of 1
Compress 7Zip
Posted: Thu Jul 31, 2014 7:44 pm
by AdrianGray
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~
Re: Compress 7Zip
Posted: Fri Aug 01, 2014 11:21 am
by FrancescoT
Please try with the attached project.
Regards
Re: Compress 7Zip
Posted: Sun Aug 03, 2014 6:45 pm
by AdrianGray
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~
Re: Compress 7Zip
Posted: Mon Aug 04, 2014 10:03 am
by FrancescoT
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.htmhttp://www.dotnetperls.com/7-zip-examplesRegards
Re: Compress 7Zip
Posted: Thu Aug 07, 2014 3:56 am
by AdrianGray
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.
Re: Compress 7Zip
Posted: Thu Aug 07, 2014 4:31 am
by FrancescoT
I am happy you solved

!
Regards