mirror of
https://gitlab.com/JKANetwork/powerfulcomputermanager.git
synced 2026-03-06 02:12:05 +01:00
Changes to doc and to API, a bit more stable
This commit is contained in:
10
doc/example_cooks/install_paintnet.yaml
Normal file
10
doc/example_cooks/install_paintnet.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
name: Install Paint.Net depending of Platform
|
||||
revision: 1
|
||||
steps:
|
||||
- IF64BIT|
|
||||
- REPOTOLOCAL|PaintDotNetMsi/PaintDotNet_424_x64.msi
|
||||
- INSTALLMSI|PaintDotNet_424_x64.msi
|
||||
- ELSE|32 Bit
|
||||
- REPOTOLOCAL|PaintDotNetMsi/PaintDotNet_424_x86.msi
|
||||
- INSTALLMSI|PaintDotNet_424_x86.msi
|
||||
- ENDIF|
|
||||
@@ -12,6 +12,7 @@ If the cook has to run everytime client is called (And not only one time per new
|
||||
If the cook has to run when no user is logued in, add:
|
||||
"atstartup: 1"
|
||||
Be aware that for be able to use this, in task scheduler (Or your favourite method) you have to run client.ps1 with argument "-startup 1" when no users are logued
|
||||
"only64bit: 1"/"only32bit: 1" only for 64 or 32 bit systems (Maybe for some updates can be used)
|
||||
|
||||
And then, steps. First a "steps:" line, and then line by line the steps of the cook
|
||||
"steps:
|
||||
@@ -49,6 +50,8 @@ Inside a cook, you can use IF/ELSE/ENDIF scheme.
|
||||
- IFSOFTWAREVER: Runs the if, if a program is installed and has X version. (Run with two param: "Name;Version")
|
||||
- IFPATHEXISTS: Runs if file exists
|
||||
- IFPWCMD: If powershell command returns $true (Executed succesfully), if is run
|
||||
- IF64BIT: If you are in a 64 Bit operating system
|
||||
- IF32BIT: If you are in a 32 Bit operating system
|
||||
- ELSE: Else..
|
||||
- ENDIF
|
||||
|
||||
|
||||
Reference in New Issue
Block a user