We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77cccb9 commit 093de6aCopy full SHA for 093de6a
pkg/windows/msi/Product.wxs
@@ -148,10 +148,13 @@ IMCAC - Immediate Custom Action - It's immediate
148
Another application has exclusive access to the file \salt\var\log\salt\minion
149
Please shut down the application
150
-->
151
- <CustomAction Id="stopSalt" Script="vbscript">
152
- On error resume next
153
- Set objShell = CreateObject("WScript.Shell")
154
- objShell.Run "net stop salt-minion", 0, true
+ <CustomAction Id="stopSalt" Script="jscript">
+ try {
+ var objShell = new ActiveXObject("WScript.Shell");
+ objShell.Run("net stop salt-minion", 0, true);
155
+ } catch (e) {
156
+ // Handle error if needed
157
+ }
158
</CustomAction>
159
160
<!-- This is the import statement for the Custom Actions:
0 commit comments