Skip to content

Comments

Only prompt once on prompt_user_then_kill#603

Merged
scriptingosx merged 4 commits intoInstallomator:devfrom
dnikles:prompt_once_then_kill
Jan 21, 2023
Merged

Only prompt once on prompt_user_then_kill#603
scriptingosx merged 4 commits intoInstallomator:devfrom
dnikles:prompt_once_then_kill

Conversation

@dnikles
Copy link
Contributor

@dnikles dnikles commented Jun 30, 2022

prompt_user_then_kill prompts, then attempts to quit, then prompts, then attempts to quit, then prompts, then attempts to quit, then kills. And in my experience, it then doesn't even run the installation. This changes it to prompt, attempt to quit, then kill without all the the re-prompting.

old experience:

2022-06-30 10:59:35 : INFO  : adobereaderdc-update : found blocking process AdobeReader
2022-06-30 10:59:37 : INFO  : adobereaderdc-update : telling app AdobeReader to quit
2022-06-30 10:59:37 : INFO  : adobereaderdc-update : waiting 30 seconds for processes to quit
2022-06-30 11:00:07 : INFO  : adobereaderdc-update : found blocking process AdobeReader
2022-06-30 11:00:13 : INFO  : adobereaderdc-update : telling app AdobeReader to quit
2022-06-30 11:00:14 : INFO  : adobereaderdc-update : waiting 30 seconds for processes to quit
2022-06-30 11:00:44 : INFO  : adobereaderdc-update : found blocking process AdobeReader
2022-06-30 11:00:46 : INFO  : adobereaderdc-update : Changing BLOCKING_PROCESS_ACTION to kill
2022-06-30 11:00:46 : INFO  : adobereaderdc-update : found blocking process AdobeReader
2022-06-30 11:00:46 : INFO  : adobereaderdc-update : killing process AdobeReader
2022-06-30 11:00:51 : INFO  : adobereaderdc-update : Telling app Adobe Acrobat Reader DC.app to open
2022-06-30 11:00:51 : INFO  : adobereaderdc-update : Reopened Adobe Acrobat Reader DC.app as dnikles
2022-06-30 11:00:51 : INFO  : adobereaderdc-update : dnikles
2022-06-30 11:00:51 : ERROR : adobereaderdc-update : ERROR: could not quit all processes, aborting...
2022-06-30 11:00:51 : REQ   : adobereaderdc-update : ################## End Installomator, exit code 11

new experience:

2022-06-30 11:10:41 : INFO  : adobereaderdc-update : found blocking process AdobeReader
2022-06-30 11:10:43 : INFO  : adobereaderdc-update : telling app AdobeReader to quit
2022-06-30 11:10:44 : INFO  : adobereaderdc-update : waiting 30 seconds for processes to quit
2022-06-30 11:11:14 : INFO  : adobereaderdc-update : Changing BLOCKING_PROCESS_ACTION to kill
2022-06-30 11:11:14 : INFO  : adobereaderdc-update : found blocking process AdobeReader
2022-06-30 11:11:14 : INFO  : adobereaderdc-update : killing process AdobeReader
2022-06-30 11:11:19 : REQ   : adobereaderdc-update : no more blocking processes, continue with update
2022-06-30 11:11:19 : REQ   : adobereaderdc-update : Installing Adobe Acrobat Reader DC

prompt_user_then_kill prompts, then attempts to quit, then prompts, then attempts to quit, then prompts, then attempts to quit, then kills. And in my experience, it then doesn't even run the installation.  This changes it to prompt, attempt to quit, then kill without all the the re-prompting.

old experience:
```
2022-06-30 10:59:35 : INFO  : adobereaderdc-update : found blocking process AdobeReader
2022-06-30 10:59:37 : INFO  : adobereaderdc-update : telling app AdobeReader to quit
2022-06-30 10:59:37 : INFO  : adobereaderdc-update : waiting 30 seconds for processes to quit
2022-06-30 11:00:07 : INFO  : adobereaderdc-update : found blocking process AdobeReader
2022-06-30 11:00:13 : INFO  : adobereaderdc-update : telling app AdobeReader to quit
2022-06-30 11:00:14 : INFO  : adobereaderdc-update : waiting 30 seconds for processes to quit
2022-06-30 11:00:44 : INFO  : adobereaderdc-update : found blocking process AdobeReader
2022-06-30 11:00:46 : INFO  : adobereaderdc-update : Changing BLOCKING_PROCESS_ACTION to kill
2022-06-30 11:00:46 : INFO  : adobereaderdc-update : found blocking process AdobeReader
2022-06-30 11:00:46 : INFO  : adobereaderdc-update : killing process AdobeReader
2022-06-30 11:00:51 : INFO  : adobereaderdc-update : Telling app Adobe Acrobat Reader DC.app to open
2022-06-30 11:00:51 : INFO  : adobereaderdc-update : Reopened Adobe Acrobat Reader DC.app as dnikles
2022-06-30 11:00:51 : INFO  : adobereaderdc-update : dnikles
2022-06-30 11:00:51 : ERROR : adobereaderdc-update : ERROR: could not quit all processes, aborting...
2022-06-30 11:00:51 : REQ   : adobereaderdc-update : ################## End Installomator, exit code 11
```

new experience:
```
2022-06-30 11:10:41 : INFO  : adobereaderdc-update : found blocking process AdobeReader
2022-06-30 11:10:43 : INFO  : adobereaderdc-update : telling app AdobeReader to quit
2022-06-30 11:10:44 : INFO  : adobereaderdc-update : waiting 30 seconds for processes to quit
2022-06-30 11:11:14 : INFO  : adobereaderdc-update : Changing BLOCKING_PROCESS_ACTION to kill
2022-06-30 11:11:14 : INFO  : adobereaderdc-update : found blocking process AdobeReader
2022-06-30 11:11:14 : INFO  : adobereaderdc-update : killing process AdobeReader
2022-06-30 11:11:19 : REQ   : adobereaderdc-update : no more blocking processes, continue with update
2022-06-30 11:11:19 : REQ   : adobereaderdc-update : Installing Adobe Acrobat Reader DC
```
@dnikles dnikles changed the title Only prompt once Only prompt once on prompt_user_then_kill Jun 30, 2022
@scriptingosx scriptingosx added the feature New feature or request label Jul 18, 2022
dnikles added 2 commits August 1, 2022 12:27
This reverts commit 18e8def.
Making the change in the appropriate file instead of in the assembled script
@scriptingosx scriptingosx modified the milestones: v10, later Sep 2, 2022
@dnikles dnikles closed this by deleting the head repository Oct 4, 2022
@dnikles dnikles reopened this Oct 4, 2022
@scriptingosx scriptingosx modified the milestones: later, v11 Jan 6, 2023
@scriptingosx scriptingosx changed the base branch from main to dev January 21, 2023 08:29
@scriptingosx scriptingosx merged commit b777232 into Installomator:dev Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants