Monday, May 21, 2012

Update the setup and deployment projects to use the Wix toolset

Download Wix 3.6 beta.

Install is funky but appears to work.  

New options in the Add New Project dialog.... so the installer has integrated with VS2010 correctly.  Nice!

Option to target different .NET framworks... intersting but I am upgrading everything to .NET 4 at the moment; so 4 it is.

Created the project file in a correctly named and placed directory.... Nice!  Although it has created an output directory in that directory.... not nice. 

Now to troll through the properties pages and get it doing things the way I want....

Turn up the warning levels

Put a mega macro in for the output path.  $(SolutionDir)bin\$(ProjectName)_$(Configuration)_$(Platform)\

Lets see if it can choak that down.

Ok, made a little bit of a mess in the build targets.  Since one of my platforms is Win32 and the other is x64... naturally it created a new one called x86 and made a tangle of the other two.  So with a little editing and deleting in the wixproj file, its all better.

Just found that I have a whole slew of build targets in some projects that are no longer needed.  More deleting.
Found a couple that cannot be deleted...???? Unload reload cycle first.  Drop all the xml files from Notepad++ that I have been hacking on....

A little more hacking in Notepad++ to remove all references to the unwanted targets and tada!  Reload project... no errors.  Check in the Build Configuration Editor... no more crap targets.   Shiny!

Now I can get back to upgrading the Setup projects.

No comments:

Post a Comment