Skip to content

Commit

Permalink
Merge pull request #2424 from teknowledgist/master
Browse files Browse the repository at this point in the history
(tixati) Fix for app running on update (#2182)
  • Loading branch information
JPRuskin authored Jun 13, 2024
2 parents 6b0a8b1 + aac8425 commit 8e38a3b
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'

if (Get-Process "Tixati*" -ErrorAction SilentlyContinue) {
Throw "Tixati is running! To prevent data loss, please fully quit Tixati before attempting to upgrade it."
}

$toolsDir = Split-Path -parent $MyInvocation.MyCommand.Definition
$fileName = 'tixati-3.25-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'

if (Get-Process "Tixati*" -ErrorAction SilentlyContinue) {
Throw "Tixati is running! To prevent data loss, please fully quit Tixati before attempting to uninstall it."
}

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

0 comments on commit 8e38a3b

Please sign in to comment.