@3-/srv-win32 0.1.14 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/install.js +2 -2
- package/package.json +1 -1
- package/uninstall.js +1 -1
package/CHANGELOG.md
CHANGED
package/install.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { $ } from "./init.js";
|
|
2
2
|
|
|
3
|
-
export default async (
|
|
3
|
+
export default async (name, exec_path, args) => {
|
|
4
4
|
try {
|
|
5
5
|
await $`schtasks /End /TN ${name}`;
|
|
6
6
|
} catch (e) {}
|
|
7
7
|
|
|
8
|
-
const cmd = `schtasks /Create /F /TN ${name} /TR "\\"${
|
|
8
|
+
const cmd = `schtasks /Create /F /TN ${name} /TR "\\"${exec_path}\\" \\"${args}\\" run" /SC ONLOGON`;
|
|
9
9
|
await $([cmd]);
|
|
10
10
|
|
|
11
11
|
await $`schtasks /Run /TN ${name}`;
|
package/package.json
CHANGED