Skip to content

Commit

Permalink
(tixati) Fix for app running on update (chocolatey-community#2182)
Browse files Browse the repository at this point in the history
This should fix [issue chocolatey-community#2182](chocolatey-community#2182) by first closing any Tixati application processes running on install or uninstall.
  • Loading branch information
teknowledgist committed Feb 7, 2024
1 parent 844b96a commit 6ccb440
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions automatic/tixati/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
$ErrorActionPreference = 'Stop'

foreach ($process in (Get-Process "$env:ChocolateyPackageName*" -ErrorAction SilentlyContinue)) {
Stop-Process -Name $process.ProcessName -Force
}

$toolsDir = Split-Path -parent $MyInvocation.MyCommand.Definition
$fileName = 'tixati-3.19-1.install.exe'
$dlDir = "$Env:TEMP\chocolatey\$($Env:ChocolateyPackageName)\$($Env:ChocolateyPackageVersion)"
Expand Down
4 changes: 4 additions & 0 deletions automatic/tixati/tools/chocolateyUninstall.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
$ErrorActionPreference = 'Stop'

foreach ($process in (Get-Process "$env:ChocolateyPackageName*" -ErrorAction SilentlyContinue)) {
Stop-Process -Name $process.ProcessName -Force
}

$packageName = 'tixati'
$installLocation = Get-AppInstallLocation $packageName
$uninstaller = "$installLocation\uninstall.exe"
Expand Down

0 comments on commit 6ccb440

Please sign in to comment.