Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add taskkill action to windows install #246

Merged
merged 2 commits into from
Oct 1, 2018

Conversation

marcparadise
Copy link
Member

@marcparadise marcparadise commented Sep 27, 2018

Description

This adds a 'taskkill' of 'Chef Workstation App.exe'
after the installer initializes. This will prevent installations
from failing because the tray app executable is in use and
can't be replaced.

Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com

Check List

  • PR title is a worthy inclusion in the CHANGELOG
  • You have locally validated the change (pending build)
  • NA: www/site/content/docs/ has been updated with any relevant changes

@marcparadise marcparadise requested a review from a team September 27, 2018 21:22
Copy link
Contributor

@jonsmorrow jonsmorrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marcparadise marcparadise force-pushed the mp/ensure-win-proc-killed-on-install branch from 7f776dd to 78f758b Compare September 27, 2018 21:44
@marcparadise marcparadise force-pushed the mp/ensure-win-proc-killed-on-install branch from 78f758b to fbe35da Compare September 28, 2018 15:39
@tyler-ball tyler-ball force-pushed the mp/ensure-win-proc-killed-on-install branch from fbe35da to e8c5a5f Compare October 1, 2018 18:46
@tyler-ball
Copy link
Contributor

@marcparadise I updated this to follow something similar to https://stackoverflow.com/questions/11439767/how-to-kill-a-process-from-wix - just tested it and it looks good! Correctly closed CWA when trying to do a new install

This adds a 'taskkill' of 'Chef Workstation App.exe'
after the installer initializes.  This will prevent installations
from failing because the tray app executable is in use and
can't be replaced.

Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
Signed-off-by: tyler-ball <tball@chef.io>
@tyler-ball tyler-ball force-pushed the mp/ensure-win-proc-killed-on-install branch from e8c5a5f to a028a45 Compare October 1, 2018 20:59
@jonsmorrow jonsmorrow merged commit d4a0483 into master Oct 1, 2018
@chef-ci chef-ci deleted the mp/ensure-win-proc-killed-on-install branch October 1, 2018 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants