Skip to content

Commit 13bb6af

Browse files
committed
Match fucntion to shell-type
1 parent 1a820da commit 13bb6af

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

nosql-booster/package/win_clean.sls

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
1717
Cleanup Uninstallation Junction:
1818
cmd.run:
19-
- name: 'Start-Sleep -Seconds 5; if (Test-Path "{{ junction }}") { rmdir {{ junction }} }'
20-
- onlyif: 'test-path {{ junction }}'
19+
- name: 'Start-Sleep -Seconds 5; if (Test-Path "{{ junction }}") { Remove-Item -Path "{{ junction }}" -Force }'
20+
- onlyif: 'Test-Path "{{ junction }}"'
2121
- require:
2222
- cmd: 'Run NoSQL Booster Uninstaller'
2323
- shell: powershell
2424
2525
Create Uninstallation Junction:
2626
cmd.run:
27-
- name: 'mklink /J {{ junction }} "{{ install_root }}"'
28-
- onlyif: 'test-path "{{ install_root }}"'
27+
- name: 'New-Item -ItemType Junction -Path "{{ junction }}" -Value "{{ install_root }}"'
28+
- onlyif: 'Test-Path "{{ install_root }}"'
2929
- require:
3030
- cmd: 'Kill Running NoSQL Booster Instances'
3131
- shell: powershell
@@ -51,7 +51,8 @@ NoSQL Booster Registry Removal:
5151
5252
Run NoSQL Booster Uninstaller:
5353
cmd.run:
54-
- name: 'start /wait "" "{{ uninstaller }}" /S /allusers'
55-
- onlyif: 'test-path "{{ uninstaller }}"'
54+
- name: 'Start-Process -FilePath "{{ uninstaller }}" -ArgumentList "/S", "/allusers" -Wait'
55+
- onlyif: 'Test-Path "{{ uninstaller }}"'
5656
- require:
5757
- cmd: 'Create Uninstallation Junction'
58+
- shell: powershell

0 commit comments

Comments
 (0)