|
Post by mrsacramento on Aug 16, 2022 11:25:45 GMT
Using UI++ as a prestart command which works like a charm but I don't manage to figure out how to not let TS start if I click Cancel button during a Preflight. Documentation state that hitting Cancel returns failure code of ERROR_NOT_READY (decimal 21) but how to use that for preventing steps in TS to run? I can't see that the failure code is added to a variable so how to fetch that information and use it? When reading the logfile it states I pressed Cancel but no information I can use . "> Cancel button pushed ... exiting UI++." Any help would be appreciated!
|
|
krys
New Member
Posts: 11
|
Post by krys on Dec 6, 2022 1:11:33 GMT
Some TS info or code would be helpful. You could try the following simple test to confirm where the problem is, using the example code from the prestart info page: <?xml version="1.0" encoding="utf-8"?> <!-- UI++ initialization --> <UIpp Title="Test App Tree" Icon="Logo.ico" Color="#282c5c" Flat="TRUE">
<!-- Actions initialization --> <Actions> <Action Type="Preflight" Title="Preflight checks"> <Check Text="WLAN Disconnected" CheckCondition='"%XWLANDisconnected%" = "True"' Description="To prevent issues during deployment, a wired connection is required." ErrorDescription="Please disconnect the wireless network from this system."/> <Check Text="Not on battery" CheckCondition='"%XOnBattery%" = "False"' /> <Check Text="Minimum memory > 1GB" CheckCondition='%XHWMemory% >= 1024' /> <Check Text="CPU Supports Windows 8+" CheckCondition='%XCPUPAE% AND %XCPUNX% AND %XCPUSSE2% = True' /> </Action> <!--Input Screen to Select Miscellaneous Apps-->
</Actions> <!-- End all Actions--> </UIpp>
<-- End UI++ --> Returns error code '9009' when canceled, the TS won't know what to do with that, so should error, if not set to 'continue on error'. Attachments:
|
|