tag:help.appveyor.com,2012-11-13:/discussions/problems/17463-installing-growlAppVeyor: Discussion 2018-12-18T21:00:22Ztag:help.appveyor.com,2012-11-13:Comment/462660312018-10-15T14:03:49Z2018-10-15T14:03:50ZInstalling Growl<div><p>Full Disclosure: UNIX/OS X guy...</p>
<p>Read the <a href="https://www.appveyor.com/docs/build-configuration/#installing-additional-software">documentation</a> for installing third party software. I lack <em>any</em> experience attempting to automate third-party Windows software installation, but the Chocolatey route seemed doable. Need to install <a href="http://www.growlforwindows.com/gfw/">Growl</a> to enable desktop notification support for unit testing of <a href="https://mochajs.org/">Mocha</a> releases.</p>
<p><a href="https://ci.appveyor.com/project/plroebuck/mocha/build/job/yqqjskq52n891ewu#L43">Until it wasn't</a>. As the <a href="https://chocolatey.org/packages/Growl">Chocolatey package</a> no longer seems maintained, any pointers how to move forward?</p></div>paul roebucktag:help.appveyor.com,2012-11-13:Comment/462660312018-10-16T07:54:05Z2018-10-16T07:54:05ZInstalling Growl<div><p>You come to the right place, Windows shop here :) Though we do a <a href="https://www.appveyor.com/docs/getting-started-with-appveyor-for-linux/">Linux builds</a> too.</p>
<p>Please try using this PowerShell at <code>install</code> stage. You can wrap it into the <code>.ps1</code> file or call <a href="https://www.appveyor.com/docs/build-configuration/#script-blocks-in-build-configuration">directly from YAML</a>.</p>
<pre>
<code>$exePath = "$($env:USERPROFILE)\GrowlInstaller.exe"
(New-Object Net.WebClient).DownloadFile('http://www.growlforwindows.com/gfw/downloads/GrowlInstaller.exe', $exePath)
mkdir C:\GrowlInstaller
7z x $exePath -oC:\GrowlInstaller | out-null
cmd /c start /wait msiexec /i C:\GrowlInstaller\Growl_v2.0.msi /quiet
$env:path = "C:\Program Files (x86)\Growl for Windows;$env:path"</code>
</pre></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/462660312018-10-16T19:20:57Z2018-10-16T19:20:59ZInstalling Growl<div><p>Been trying to get this to work for some time now, but not really making any progress.</p>
<p>"appveyor.yml': <a href="https://github.com/plroebuck/mocha/blob/appveyor-test/appveyor.yml">https://github.com/plroebuck/mocha/blob/appveyor-test/appveyor.yml</a></p>
<p>Job Output: <a href="https://ci.appveyor.com/project/plroebuck/mocha/builds/19558680">https://ci.appveyor.com/project/plroebuck/mocha/builds/19558680</a></p></div>paul roebucktag:help.appveyor.com,2012-11-13:Comment/462660312018-10-16T21:18:57Z2018-10-16T21:18:58ZInstalling Growl<div><p>Still a no-go.<br>
Details posted with original issue.</p></div>Paul Roebucktag:help.appveyor.com,2012-11-13:Comment/462660312018-10-16T21:22:36Z2018-10-16T21:22:36ZInstalling Growl<div><p>Try using script <strong>as is</strong> first, then customize. It was tested before publishing (as we always do :)). For example there is a reason <code>C:\GrowlInstaller</code> is hard-coded and not a variable. Let us know how it goes.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/462660312018-10-17T23:40:22Z2018-10-18T05:59:13ZInstalling Growl<div><p>Had no idea <em>using variables in a script</em> would cause problems... LOL<br>
But I should have known better than to customize first.</p>
<p>As it's now <em>installed</em>, <em>where</em> is the canonical place in "appveyor.yml" from which to run it?<br>
For the moment, I started <a href="http://www.growlforwindows.com/gfw/">Growl</a> within the <code>install</code> block (and let it get going while other installs were occurring). Looked at <code>services</code> but that appears only for predefined dbconns, not allowing anything custom. There's no <code>after_install</code>. There's neither <code>before_build</code> nor <code>after_build</code> if MS build is <code>false</code> [not completely unexpected though]. Any guidance would be appreciated.</p></div>paul roebucktag:help.appveyor.com,2012-11-13:Comment/462660312018-10-18T16:52:21Z2018-10-18T16:52:21ZInstalling Growl<div><p>I actually have no clear idea why variable did not work there, I feel this has something to do with <code>7z</code>. But honestly I did not dig too deep.</p>
<p>You can use <code>before_build</code> together with <code>build_script</code>, as long as you do not have <code>build</code> section (which fires MSBuild). Like this:</p>
<pre>
<code>before_build:
- echo before build
build_script:
- echo build script</code>
</pre>
<p>Generally it is up to you too choose when to start it, it should just happen after installation and before build. <code>before_build</code> looks clearer but both <code>install</code> and beginning of the <code>build_script</code> will work too.</p></div>Ilya Finkelshteyn