# Specifying compression algorithm in 7-zip actions

**URL:** https://www.finalbuilder.com/forums/t/specifying-compression-algorithm-in-7-zip-actions/6391
**Category:** Feature Requests
**Tags:** implemented
**Created:** [January 8, 2019, 6:40am UTC](https://www.finalbuilder.com/forums/t/specifying-compression-algorithm-in-7-zip-actions/6391 "2019-01-08T06:40:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![chillefeld](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/chillefeld/32/1333_2.png) [@chillefeld](https://www.finalbuilder.com/forums/u/chillefeld)
#### Post date: [January 8, 2019, 6:40am UTC](https://www.finalbuilder.com/forums/t/specifying-compression-algorithm-in-7-zip-actions/6391/1 "2019-01-08T06:40:27Z")

</div>

I recently had to change the compression algorithm used for our zip archives to lzma.  
Unfortunately FinalBuilder’s 7z actions don’t have an option to pick the algorithm so I had to call 7z from the command line.

It would be convenient to have this setting available in the action directly.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 8, 2019, 8:56pm UTC](https://www.finalbuilder.com/forums/t/specifying-compression-algorithm-in-7-zip-actions/6391/2 "2019-01-08T20:56:24Z")

</div>

On the Archive Options tab, there is an Archive Type option, is that what you are looking for?

---

<div class="post-metadata">

### Author: ![chillefeld](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/chillefeld/32/1333_2.png) [@chillefeld](https://www.finalbuilder.com/forums/u/chillefeld)
#### Post date: [January 9, 2019, 8:18am UTC](https://www.finalbuilder.com/forums/t/specifying-compression-algorithm-in-7-zip-actions/6391/3 "2019-01-09T08:18:55Z")

</div>

Not quite.  
Changing the archive type will also change the default algorithm used. But what I need is to keep the archive type the same (due to technical limitations we have to use zip instead of 7z) and change only the algorithm.

In the 7zip GUI it would be this option:

 ![grafik](https://www.finalbuilder.com/forums/uploads/default/original/2X/c/cb7789d87988c79ab50aedd1457a22de463d2887.png)

The corresponding commandline would be something like `7z a -tzip -mm=lzma ...`

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 10, 2019, 4:10am UTC](https://www.finalbuilder.com/forums/t/specifying-compression-algorithm-in-7-zip-actions/6391/4 "2019-01-10T04:10:30Z")

</div>

Hi Christoph

Please try this build

[https://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800\_2513.exe](https://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_2513.exe)

I have added the Compression Method option.

---

<div class="post-metadata">

### Author: ![chillefeld](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/chillefeld/32/1333_2.png) [@chillefeld](https://www.finalbuilder.com/forums/u/chillefeld)
#### Post date: [January 10, 2019, 7:13am UTC](https://www.finalbuilder.com/forums/t/specifying-compression-algorithm-in-7-zip-actions/6391/5 "2019-01-10T07:13:42Z")

</div>

That’s exactly what I was looking for.  
Thank you.
