before-deploy.ps1 and deploy.ps1 with MSI deployment

mjonker's Avatar

mjonker

12 May, 2016 04:56 PM

Hi,

I asked this question about a month ago, but it still says that it is "awaiting moderation." Anyway...

I am deploying an MSI using the AppVeyor Deployment Agent, however I can't figure out how to use before-deploy.ps1 and deploy.ps1. The documentation seems geared toward the zip file deployment, as it says it has to be "in the root of application folder". I'm not sure where that would be for an MSI deployment.

  1. Support Staff 1 Posted by Feodor Fitsner on 13 May, 2016 03:55 AM

    Feodor Fitsner's Avatar

    Well, it's not supposed to work with MSI as there is no easy way to extract before-deploy.ps1 from it.

    However, as a workaround you can have two additional packages deployed as "Windows application". One package with before-deploy.ps1 inside and another with deploy.ps1 - put any logic inside those packages.

    Set correct deploy_order for three packages.

  2. 2 Posted by mjonker on 13 May, 2016 01:15 PM

    mjonker's Avatar

    Thanks, Feodor. I actually put together this exact solution after I posted my question.

    It might be helpful to mention it in the documentation. The placement of the script abilities directly below the MSI deployment instructions seems, to me, to indicate they would be available. Also, the MSI deployment section doesn't mention a deploy_order property, but it has worked for me.

  3. Support Staff 3 Posted by Feodor Fitsner on 13 May, 2016 04:28 PM

    Feodor Fitsner's Avatar

    Sounds great, thanks for the update!

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:06 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