Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 7zip.sls #2067

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 32 additions & 1 deletion 7zip.sls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# both 32-bit (x86) AND a 64-bit (AMD64) installer available
{% set versions = {'19':['00'], '18':['06', '05', '03', '01'], '16':['04', '03', '02', '00']} %}
{% set versions = {'22':['01'],'19':['00']} %}
{% set source_path = 'https://d.7-zip.org/a/' %}

7zip:
Expand All @@ -24,3 +24,34 @@
reboot: False
{% endfor %}
{% endfor %}
#
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Below are versions of 7-zip that have had the installer assets removed from the web.
# An uninstall only definition will remain here so the packages will show up
# correctly in `pkg.list_pkgs` and to allow for removal using `pkg.remove`
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{% set versions = [ '18':['06', '05', '03', '01'], '16':['04', '03', '02', '00']} %}
{% for major, subversions in versions.items() %}
{% for minor in subversions %}
'{{major}}.{{minor}}.00.0':
{% if grains['cpuarch'] == 'AMD64' %}
full_name: '7-Zip {{major}}.{{minor}} (x64 edition)'
installer: '{{ source_path }}7z{{major}}{{minor}}-x64.msi'
uninstaller: '{{ source_path }}7z{{major}}{{minor}}-x64.msi'
arch: x64
{% else %}
full_name: '7-Zip {{major}}.{{minor}}'
installer: '{{ source_path }}7z{{major}}{{minor}}.msi'
uninstaller: '{{ source_path }}7z{{major}}{{minor}}.msi'
arch: x86
{% endif %}
install_flags: '/qn /norestart'
uninstall_flags: '/qn /norestart'
msiexec: True
locale: en_US
reboot: False
{% endfor %}
{% endfor %}
{% endfor %}