diff --git a/automatic/tixati/tixati.nuspec b/automatic/tixati/tixati.nuspec
index 1473618b115..398c64639a9 100644
--- a/automatic/tixati/tixati.nuspec
+++ b/automatic/tixati/tixati.nuspec
@@ -35,14 +35,14 @@ __Tixati__ is one of the most advanced and flexible BitTorrent clients available
* **If the package is out of date please check [Version History](#versionhistory) for the latest submitted version. If you have a question, please ask it in [Chocolatey Community Package Discussions](https://github.com/chocolatey-community/chocolatey-packages/discussions) or raise an issue on the [Chocolatey Community Packages Repository](https://github.com/chocolatey-community/chocolatey-packages/issues) if you have problems with the package. Disqus comments will generally not be responded to.**
]]>
http://www.tixati.com/
- internet network download torrent p2p share admin freeware
+ internet network download torrent p2p share freeware bittorrent notsilent
http://www.tixati.com/tixati_eula.txt
false
https://cdn.jsdelivr.net/gh/chocolatey-community/chocolatey-packages@bee4bc391df114723011dbd5b8a8af2a17c6bf2e/icons/tixati.png
-
+
https://github.com/chocolatey-community/chocolatey-packages/tree/master/automatic/tixati
diff --git a/automatic/tixati/tools/chocolateyInstall.ps1 b/automatic/tixati/tools/chocolateyInstall.ps1
index 56ab08a18ed..13d4982d3de 100644
--- a/automatic/tixati/tools/chocolateyInstall.ps1
+++ b/automatic/tixati/tools/chocolateyInstall.ps1
@@ -1,29 +1,35 @@
$ErrorActionPreference = 'Stop'
-$packageName = 'tixati'
+$toolsDir = Split-Path -parent $MyInvocation.MyCommand.Definition
$fileName = 'tixati-3.19-1.install.exe'
-$download_dir = "$Env:TEMP\chocolatey\$packageName\$Env:ChocolateyPackageVersion"
+$dlDir = "$Env:TEMP\chocolatey\$($Env:ChocolateyPackageName)\$($Env:ChocolateyPackageVersion)"
$packageArgs = @{
- packageName = $packageName
- fileFullPath = "$download_dir\$fileName"
+ packageName = $Env:ChocolateyPackageName
+ fileFullPath = Join-path $dlDir $fileName
url = 'https://download1.tixati.com/download/tixati-3.19-1.win32-install.exe'
url64bit = 'https://download1.tixati.com/download/tixati-3.19-1.win64-install.exe'
checksum = 'aba530275d136a63e927807d75a3d5ceb30990d15eedf00a12f5bd247f79b5e0'
checksum64 = 'c696960f8bdade39e3a73d6a7626dbd9ecb79f8c9335c8ea1220015a55627692'
checksumType = 'sha256'
- checksumType64 = 'sha256'
}
+
Get-ChocolateyWebFile @packageArgs
-Write-Output "Running Autohotkey installer"
-$toolsPath = Split-Path $MyInvocation.MyCommand.Definition
-Autohotkey.exe $toolsPath\$packageName.ahk $packageArgs.fileFullPath
+# silent install requires AutoHotKey
+$ahkFile = Join-Path $toolsDir "$($Env:ChocolateyPackageName).ahk"
+$ahkProc = Start-Process -FilePath AutoHotkey.exe -ArgumentList "$ahkFile" -PassThru
+Write-Debug "AutoHotKey start time:`t$($ahkProc.StartTime.ToShortTimeString())"
+Write-Debug "AutoHotKey Process ID:`t$($ahkProc.Id)"
+
+Start-ChocolateyProcessAsAdmin -ExeToRun $packageArgs.fileFullPath
-$installLocation = Get-AppInstallLocation $packageName
-if ($installLocation) {
- Write-Host "$packageName installed to '$installLocation'"
- Register-Application "$installLocation\$packageName.exe"
- Write-Host "$packageName registered as $packageName"
+$installLocation = Get-AppInstallLocation $Env:ChocolateyPackageName
+if ($installLocation) {
+ Write-Host "$($Env:ChocolateyPackageName) installed to '$installLocation'"
+ Register-Application "$installLocation\$($Env:ChocolateyPackageName).exe"
+ Write-Host "$($Env:ChocolateyPackageName) registered as $($Env:ChocolateyPackageName)"
+}
+else {
+ Write-Warning "Can't find $($Env:ChocolateyPackageName) install location"
}
-else { Write-Warning "Can't find $PackageName install location" }
diff --git a/automatic/tixati/tools/tixati.ahk b/automatic/tixati/tools/tixati.ahk
index 8e2d389c81b..6572d0e3537 100644
--- a/automatic/tixati/tools/tixati.ahk
+++ b/automatic/tixati/tools/tixati.ahk
@@ -1,20 +1,25 @@
-SetTitleMatchMode, RegEx
-exe_re = tixati-.+install.exe
+SetTitleMatchMode "RegEx"
+exe_re := "tixati-.+install.exe"
-Run %1%
-WinWait, ahk_exe %exe_re%,,20
-IfNotEqual, ErrorLevel, 0, exit 1
-ControlSend,, {ENTER}, ahk_exe %exe_re%
+If WinWait("ahk_exe " exe_re, , 20)
+ ControlSend "{ENTER}",, "ahk_exe " exe_re
+Else
+ exit 1
-WinWait, ahk_exe %exe_re%, YES`, continue installation, 20
-IfNotEqual, ErrorLevel, 0, exit 1
-ControlSend,, {ENTER}, ahk_exe %exe_re%
+If WinWait("ahk_exe " exe_re, "YES`, continue installation", 20)
+ ControlSend "{ENTER}",, "ahk_exe " exe_re
+Else
+ exit 1
-WinWait, ahk_exe %exe_re%, Install, 20
-IfNotEqual, ErrorLevel, 0, exit 1
-ControlSend,, {ENTER}, ahk_exe %exe_re%
+If WinWait("ahk_exe " exe_re, "Install", 20)
+ ControlSend "{ENTER}",, "ahk_exe " exe_re
+Else
+ exit 1
-WinWait, ahk_exe %exe_re%, Installation is complete!, 20
-IfNotEqual, ErrorLevel, 0, exit 1
-WinActivate
-Send, {TAB}{ENTER}
+if WinWait("ahk_exe " exe_re, "Installation is complete!", 20)
+{
+ WinActivate
+ Send "{TAB}{ENTER}"
+}
+Else
+ exit 1