Is it possible to build VS Setup projects?

chris579's Avatar

chris579

13 Jun, 2016 03:45 PM

Hey there,

is there a possibility to build Visual Studio Setup projects via AppVeyor? I just get the error that only xml project files are accepted when trying to let it build the installer.

  1. Support Staff 1 Posted by Feodor Fitsner on 13 Jun, 2016 05:54 PM

    Feodor Fitsner's Avatar

    Yes, you should use devenv.exe to build .vdproj projects: http://help.appveyor.com/discussions/problems/626-added-a-visual-st...

    I'd better move to WiX though.

  2. 2 Posted by chris579 on 13 Jun, 2016 05:58 PM

    chris579's Avatar

    Thanks for the answer.

    I already had a look at WIX however it is too complicated for me to understand the whole topic. Plus, the application I am developing is not planned for public or even buisness environments so a proper installer is not needed atm.

  3. 3 Posted by chris579 on 13 Jun, 2016 07:26 PM

    chris579's Avatar

    After implementing this into the after_build event the build task stops there and nothing happens. I waited 10 mins for it but it seems like its hanging up.

    Here the code:

    after_build:
      - cmd: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe" /Upgrade /Runexit /Build Release /project FaceDetection\FaceDetectionInstaller\FaceDetectionInstaller.vdproj'
    
  4. Support Staff 4 Posted by Feodor Fitsner on 13 Jun, 2016 07:29 PM

    Feodor Fitsner's Avatar
  5. 5 Posted by chris579 on 13 Jun, 2016 08:22 PM

    chris579's Avatar

    Thanks for this head up.

    With the help of the rdp I adjusted my code to this:

    after_build:
      - cmd: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" FaceDetection\FaceDetection.sln /Build Release /project FaceDetection\FaceDetectionInstaller\FaceDetectionInstaller.vdproj /projectconfig Release'
    

    However there is another problem: When building there pops up a window notfiying me that PostSharp is not installed and therefore the project can't be compiled. How could I handle this?

  6. Support Staff 6 Posted by Feodor Fitsner on 13 Jun, 2016 08:45 PM

    Feodor Fitsner's Avatar

    I think you should restore nuget packages before build with nuget restore command.

  7. 7 Posted by chris579 on 13 Jun, 2016 09:01 PM

    chris579's Avatar

    Yeah, I'm already restoring them.
    You can find the whole appveyor.yml here:

    https://github.com/chris579/PKInfRemi/blob/faceDetection/appveyor.yml

  8. Support Staff 8 Posted by Feodor Fitsner on 13 Jun, 2016 11:55 PM

    Feodor Fitsner's Avatar

    Indeed, looks interesting :) Told you vdproj is a slippery way!

    To workaround that I would try to creating a separate .sln solution with that .vdproj project only and then building it with devenv.exe

  9. 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