Skip to content

Commit

Permalink
salt-minion-py3: use registry install_dir for uninstaller where neces…
Browse files Browse the repository at this point in the history
…sary
  • Loading branch information
dafyddj committed Jan 21, 2022
1 parent 89feabd commit 26a389a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions salt-minion-py3.sls
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% set install_dir = salt["reg.read_value"]("HKLM", "SOFTWARE\\Salt Project\\Salt", "install_dir").vdata %}
{% set install_dir = install_dir or "C:\\salt" %}
salt-minion-py3:
{%
for version in [
Expand All @@ -17,7 +19,7 @@ salt-minion-py3:
installer: 'https://repo.saltproject.io/windows/Salt-Minion-{{ version }}-Py3-x86-Setup.exe'
{% endif %}
install_flags: '/S'
uninstaller: 'C:\salt\uninst.exe'
uninstaller: '{{ install_dir }}\uninst.exe'
uninstall_flags: '/S'
msiexec: False
use_scheduler: True
Expand Down Expand Up @@ -86,7 +88,7 @@ salt-minion-py3:
'{{ version }}':
skip_urltest: True
full_name: 'Salt Minion {{ version }} (Python 3)'
uninstaller: 'C:\salt\uninst.exe'
uninstaller: '{{ install_dir }}\uninst.exe'
uninstall_flags: '/S'
use_scheduler: True
{% endfor %}

0 comments on commit 26a389a

Please sign in to comment.