forked from saltstack/salt-winrepo-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sls
36 lines (36 loc) · 1.54 KB
/
init.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
27
28
29
30
31
32
33
34
35
36
# only 32-bit (x86) installer available
{% if grains['cpuarch'] == 'AMD64' %}
{% set PROGRAM_FILES = "%ProgramFiles(x86)%" %}
{% elif grains['cpuarch'] == 'x86' %}
{% set PROGRAM_FILES = "%ProgramFiles%" %}
{% endif %}
zipinstaller:
'1.21':
full_name: 'ZipInstaller'
installer: 'salt://win/repo-ng/zipinstaller/zipinst.exe'
{% if grains['cpuarch'] == 'AMD64' %}
install_flags: '/i zipinst_x64.zip'
{% elif grains['cpuarch'] == 'x86' %}
install_flags: '/i zipinst_x86.zip'
{% endif %}
uninstaller: 'zipinst.exe'
uninstall_flags: '/uninst "c:\utl\uninst1~.nsu"'
msiexec: False
locale: en_US
reboot: False
cache_dir: True
# Description:
# This is a 32-bit zip archive program installer that installes directly from zip archives and creates shortcuts and un-install entries
# automatically, exactly as defined in a simple '~zipinst~.zic' if it finds it inside the zip archive.
#
# All it takes is calling up 'zipinst.exe /i <archive>.zip' that contains a file called '~zipinst~.zic', which itself is in *.ini file
# format and contains, directives about where it should install etc.
#
# Source:
# http://www.nirsoft.net/utils/zipinst.html
# http://www.nirsoft.net/utils/zipinst.exe
# http://www.nirsoft.net/utils/zipinst.zip (need to add '~zipinst~.zic' to it)
# you have to insert the '~zipinst~.zic' file into the 'zipinst.zip' file
# and place the resulting zipinst.zip into the 'salt://win/repo-ng/zipinstaller/' on your master
# as well as the 'zipinst.exe' and 'cache_dir: True' will copy all files from master to minion cache
#