31

I need to convert a vdproj file to WiX format so that I can get it building using msbuild. One solution was to call the devenv executable from msbuild and build the vdproj file from there but that's just nasty. I thought that I would try manually converting the file to WiX format but looking at its contents scared me quite a bit. Are there any tools or elegant solutions that could possibly help with this conversion?

Draco
  • 16,156
  • 23
  • 77
  • 92
  • It's funny just how often "that's just nasty" could equivalently be said "it works"! After struggling to get MSBuild 2.0 to work with our setup projects (and C++ projects), I finally gave up and stayed with using `devenv` because, well, it works :-) – Pat Jul 20 '12 at 20:05
  • Check if "VDProj to WiX Converter" helps you. http://visualstudiogallery.msdn.microsoft.com/0f8ff662-c844-4c3c-9c7b-b170cea16baf – AKaral Jun 17 '13 at 10:00
  • @AKaral: The link you gave is a limited trial and nagware. – Phil Feb 18 '14 at 18:02
  • What the hell is WiX??? Isn't that one of those "build your own website" things??? – Christine Mar 16 '16 at 19:11
  • @Phil - lol "nagware." – Christine Mar 16 '16 at 19:11

4 Answers4

22

You can try work with Dark which converts any MSI into Wix. You will need to remove a lot of "junk" especially in the UI areas but it will give you a decent start.

David Vogel
  • 465
  • 8
  • 23
Shay Erlichmen
  • 31,691
  • 7
  • 68
  • 87
  • 1
    Look at people complaints: http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/3041773-bring-back-the-basic-setup-and-deployment-project- who is gonna maintain that abomination ? – Pam Mar 31 '13 at 00:09
  • 1
    The link is broken for now. It turned commercial . – Davut Gürbüz Apr 01 '14 at 15:00
  • This is a good link: http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/3041773-bring-back-the-basic-setup-and-deployment-project- – Pam May 01 '14 at 16:01
  • 1
    btw looks like finally MSFT "released an extension which delivers the Visual Studio Installer projects functionality present in Visual Studio 2010 for Visual Studio 2013." (see link above) Better late, than never :-) – Pam May 01 '14 at 16:05
  • 1
    After installation of WiX using the following command helped me: %WiXInstallDir%\dark.exe -x %OutPutDir% foo.msi %OutPutDir%\foo.wxs Better if the .msi is built in Debug mode. – Gayan Dasanayake Nov 13 '14 at 05:45
6

There is a utility by Chris Oldwood that converts a .vdproj to .wxs (using powerscript command line) I hope that helps, this is my current research and I will report back on any issues. Once converted do not forget WixEdit. Microsoft have removed .vdproj from VS2012.

Nalaka526
  • 11,278
  • 21
  • 82
  • 116
  • I have had a quick look at this but it proved to be of little utility for my vdproj files - Chris does explicitly say that his script is specific to his use case. I have a number of projects that are installed as system services and these are not a good target for this script. – David Clarke Mar 17 '15 at 22:12
0

"VDProj to WiX Converter" will help you to convert vdProj file to wix.

It can be downloaded from the link http://visualstudiogallery.msdn.microsoft.com/0f8ff662-c844-4c3c-9c7b-b170cea16baf

AKaral
  • 237
  • 1
  • 4
-1

If you want to switch to NSIS or Inno Setup you can use Visual & Installer extension: http://visualstudiogallery.msdn.microsoft.com/5e57fe9a-ae5d-4740-a1c3-7a8e278e105b

It also supports conversion from .vdproj files into NSIS or Inno Setup script.

Slappy
  • 5,250
  • 1
  • 23
  • 29