Compress 7zip Archive error #1006

Got a problem you cannot solve? Try here.
SebSpiers
Posts: 38
Joined: Tue Dec 20, 2016 7:14 am
Location: Tewkesbury, UK

Compress 7zip Archive error #1006

Postby SebSpiers » Wed May 24, 2017 4:23 am

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.
I'm not a developer, I just want to install things...

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

Re: Compress 7zip Archive error #1006

Postby FrancescoT » Wed May 24, 2017 4:29 am

Dear Seb,

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

Regards
Francesco Toscano
InstallAware Software Support

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

SebSpiers
Posts: 38
Joined: Tue Dec 20, 2016 7:14 am
Location: Tewkesbury, UK

Re: Compress 7zip Archive error #1006

Postby SebSpiers » Wed May 31, 2017 3:51 am

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.
Attachments
Test7zip.zip
(4.26 KiB) Downloaded 58 times
I'm not a developer, I just want to install things...

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

Re: Compress 7zip Archive error #1006

Postby FrancescoT » Thu Jun 01, 2017 6:44 am

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
Francesco Toscano
InstallAware Software Support

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

SebSpiers
Posts: 38
Joined: Tue Dec 20, 2016 7:14 am
Location: Tewkesbury, UK

Re: Compress 7zip Archive error #1006

Postby SebSpiers » Thu Jun 01, 2017 7:43 am

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:
I'm not a developer, I just want to install things...

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

Re: Compress 7zip Archive error #1006

Postby FrancescoT » Thu Jun 08, 2017 4:14 am

:D :D
Francesco Toscano
InstallAware Software Support

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

glenharvy
Posts: 146
Joined: Fri Sep 14, 2007 3:53 am

Re: Compress 7zip Archive error #1006

Postby glenharvy » Thu Nov 23, 2017 7:29 pm

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.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 16 guests