Skip to content

Commit 08adcf9

Browse files
authored
Update README.md
1 parent de80134 commit 08adcf9

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ Scenarious are represeneted by methods of `DeployerEngine`
4343

4444
# Deployment
4545

46-
- Deployment result: OK, NEWER_VERSION_EXISTS, NEED_REBOOT, INCOMPATIBLE_API_VERSION, ALREADY_INSTALLED, FAILED
46+
- Deployment result: OK, NEWER_VERSION_EXISTS, NEED_REBOOT(only for Inno Setup .exe who provide param /restartexitcode={value}), REEBOOT_CONTINUE, INCOMPATIBLE_API_VERSION, ALREADY_INSTALLED, FAILED
4747
- INCOMPATIBLE_API_VERSION: Product should depend on `deployer-api` which is compatible with one used by engine
48+
- NEED_REBOOT: Only for Inno Setup .exe who provide param /restartexitcode=$restartexitcode. It means that installation succesfully but PC need to restart before work with installed `product`
4849
- DP - deployed product. Contains IProductStructure, Coords, and deployment URL
4950
- RP - required product
5051

@@ -55,23 +56,19 @@ Steps
5556
- Install dependencies (If product has `dependency products`)
5657
- all `dependency products` are installed recursively
5758
- if one of `dependency products` installation fails - `DP` installation fails
58-
- if `dependency product` installation returns `NEED_REBOOT` - `DP` returns `NEED_REBOOT`
59+
- if `dependency product` installation returns `REBOOT_CONTINUE` - `DP` returns `REBOOT_CONTINUE`
5960
- If `DP`.version equals to `RP`.version then `ALREADY_INSTALLED` is returned
6061
- If `DP`.version greater then `RP`.version then `NEWER_VERSION_EXISTS` is returned
6162
- Stop `DP`
6263
- `DP` deployers and components are downloaded
6364
- All `DP` components are stopped in reverse order
64-
- If `stop` fails all `DP`-components are `disabled`,`NEED_REBOOT` is returned and all already deployed components undeploy
65+
- If `stop` fails all `DP`-components are `disabled`,`REBOOT_CONTINUE` returns
6566
- Deployment
6667
- Components which does not exist anymore are undeployed, updated components redeployed (stop/undeploy/deploy), new components deployed
6768
- Start
6869
- All components started
6970
- If `portable folder` is specified it is implicitly used as a main repository (before all repos listed in `product list`)
7071

71-
## Error Handling
72-
73-
If error occurs during component deployment previously deployed components are stopped and undeployed (NEED_REBOOT is ignored), FAILED is returned
74-
7572
# Self-upgrade
7673

7774
- product which uses `scm4j-deployer-engine` must implement `IImmutable`

0 commit comments

Comments
 (0)