CoApp support

Arseny Kapoulkine's Avatar

Arseny Kapoulkine

20 Oct, 2015 05:17 AM

Can we get CoApp PowerShell Tools installed on the images that run Appveyor builds? (http://downloads.coapp.org/files/CoApp.Tools.Powershell.msi, http://coapp.org/tutorials/building-a-package.html)

CoApp is pretty much required for building native NuGet packages.

In theory it should be possible to install the MSI during the VM build, however for some reason I can't get this to work - I can install it fine but I can't run the PowerShell command that's supposed to be installed with this MSI (https://ci.appveyor.com/project/zeux/pugixml/build/nuget-174). I can run this fine on an actual Windows machine, so I suspect that it has to do with first-time installation issue mentioned on http://coapp.org/tutorials/building-a-package.html.

  1. Support Staff 1 Posted by Feodor Fitsner on 21 Oct, 2015 05:06 PM

    Feodor Fitsner's Avatar

    Hi Arseny,

    Sorry for the late reply.

    I believe you should import some PowerShell module with that command after MSI is installed.

  2. 2 Posted by Arseny Kapoulki... on 24 Oct, 2015 08:53 PM

    Arseny Kapoulkine's Avatar

    Ok, I finally got it working.

    Import-Module helped, in addition to setting PSModulePath in the current PS session: https://github.com/zeux/pugixml/blob/master/appveyor.yml#L5-L8

    I believe AppVeyor documentation on installing from .msi is incorrect. Note that I use Start-Process -Wait to launch msiexec - if I don't do it the installation seems to proceed in parallel with subsequent PS commands, which of course can't work in my case.

  3. Support Staff 3 Posted by Feodor Fitsner on 25 Oct, 2015 12:40 AM

    Feodor Fitsner's Avatar

    Yeah, should fix that part.

    Another way of installing MSIs:

    $msiPath = "$($env:USERPROFILE)\CoApp.Tools.Powershell.msi"
    (New-Object Net.WebClient).DownloadFile('http://downloads.coapp.org/files/CoApp.Tools.Powershell.msi', $msiPath)
    cmd /c start /wait msiexec /i "$msiPath" /quiet
    
  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:01 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

12 Aug, 2022 08:39 PM
11 Aug, 2022 03:44 PM
07 Aug, 2022 05:11 PM
06 Aug, 2022 11:02 AM
03 Aug, 2022 10:03 AM

 

02 Aug, 2022 02:35 PM
29 Jul, 2022 06:45 PM
29 Jul, 2022 03:35 PM
22 Jul, 2022 03:16 PM
21 Jul, 2022 10:05 PM
15 Jul, 2022 03:08 PM