Page 1 of 1

Compress 7zip Archive error #1006

Posted: Wed May 24, 2017 4:23 am
by SebSpiers
Hi,

I'm attempting to compress files into a 7zip archive and receive the error "#1006".

I'm doing this:

Code: Select all

Compress 7Zip Archive C:\Temp\$host$_sii_upg.7z with non-recursive files "C:\Program Files (x86)\Oberthur Technologies\Smart Instant Issuance Workstation\SmartInstantIssuance.exe.config"|C:\eWam\INI\init.ini|C:\eWam\Wnetconf.ini|ODCRoot\Database\ODCConfiguration.mdb|"C:\ODC S3500\OberthurDesktopController.ini"|"C:\ODC S3500\ODCS3500.ini"|"C:\ODC S3500\Wnetconf.ini"|"C:\ODC S3500\WsmEmulator.ini"|"C:\ODC S3500\ODC.plugin.log4net"|"C:\ODC S3500\OT.Eqpt.PCSC.log4net"|"C:\ODC S3500\OT.log4cplus.properties", using the 7ZIP algorithm (get result into variable ErrorCode)

I have declared the variable $host$ with the Get System Setting Logged on Computer Name system variable.

I am running version X6 Build 02.20.2017 (Purple Horse), which is licensed and activated.

Re: Compress 7zip Archive error #1006

Posted: Wed May 24, 2017 4:29 am
by FrancescoT
Dear Seb,

do you have any chance to post a very minimal project that replicates the issue?

Regards

Re: Compress 7zip Archive error #1006

Posted: Wed May 31, 2017 3:51 am
by SebSpiers
Small example project attached.

Code: Select all

Get System Setting Logged on Computer Name into host
Compress 7Zip Archive C:\Temp\$host$_sii_upg.7z with non-recursive files "C:\Program Files (x86)\Oberthur Technologies\Smart Instant Issuance Workstation\SmartInstantIssuance.exe.config"|C:\eWam\INI\init.ini|C:\eWam\Wnetconf.ini|ODCRoot\Database\ODCConfiguration.mdb|"C:\ODC S3500\OberthurDesktopController.ini"|"C:\ODC S3500\ODCS3500.ini"|"C:\ODC S3500\Wnetconf.ini"|"C:\ODC S3500\WsmEmulator.ini"|"C:\ODC S3500\ODC.plugin.log4net"|"C:\ODC S3500\OT.Eqpt.PCSC.log4net"|"C:\ODC S3500\OT.log4cplus.properties", using the 7ZIP algorithm (get result into variable ErrorCode)
Write into Text File C:\Temp\Logs\sii_upg_$datetime$.log from Value $date$ $time$ $ErrorCode$ - Zip Config and Logs (at end of file)


Some things to note:
All of the files that I am trying to include in the archive exist on my test system.
The folders C:\Temp and C:\Temp\Logs already exist.
The user running the application on the test system has local admin rights and has full access to all of the files and folders I am trying to add to the archive.

Re: Compress 7zip Archive error #1006

Posted: Thu Jun 01, 2017 6:44 am
by FrancescoT
Dear Seb,

for what concerns the #1006 error returned by the "Compress 7zip Archive" command, as reported in the command documentation, you have to switch to the full compression engine before compiling your setup project when you are invoking this command.

To switch the compression engine, please carefully follow the steps described in the "Compression Engines in InstallAware" topic from the InstallAware documentation.

Last but not least, Custom SCRIPT VARIABLES must be Always declared before to use them. For what I see from the project you posted, the variables; host and ErrorCode have NOT been declared.

Hope this helps you.

Regards

Re: Compress 7zip Archive error #1006

Posted: Thu Jun 01, 2017 7:43 am
by SebSpiers
FrancescoT wrote:Last but not least, Custom SCRIPT VARIABLES must be Always declared before to use them. For what I see from the project you posted, the variables; host and ErrorCode have NOT been declared.
Hi Francesco, the variables are declared in my larger project.

I have followed the documentation here: https://www.installaware.com/mhtml5/des ... ngines.htm

I can report a great success!! Thank you for your help. :mrgreen:

Re: Compress 7zip Archive error #1006

Posted: Thu Jun 08, 2017 4:14 am
by FrancescoT
:D :D

Re: Compress 7zip Archive error #1006

Posted: Thu Nov 23, 2017 7:29 pm
by glenharvy
Hi,

I can't figure out how exactly I should change the engine. I presume that I need to achieve this by renaming interop\mia.lib to say interop\mia.bak and replacing it with the mia.lib file located at one level up.

I presume I can create simple dos commands to do this automatically in a Pre-Build event?

Glen.