forked from saltstack/salt-winrepo-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
7zip.sls
26 lines (25 loc) · 927 Bytes
/
7zip.sls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 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 source_path = 'https://d.7-zip.org/a/' %}
7zip:
{% 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 %}