Creating and organizing the Solution and important settings

by Markus 29. October 2009 21:20

 

Creating a Project

Open Visual Studio 2008 and create a new project – Select Wix – and WiXProject

ScreenShot026

 

Go to the Properties Page of the Project and verify the following Settings: (put in values that are good for you)

Installer

  • Output Name !!! Hint: Be aware that this name should stay the same over all versions of your product!!!

Build

  • Cultures to Build
  • Output Path

 

ScreenShot027

 

Adding References

You need to add the following references to the project

  • WixNetExtentions
  • WixUIExtentions
  • WixUtilExtentions
  • WixVSExtentions

 

Organizing the project

 

You can split the wxs files in so called fragments. Note, that there ist nothing like a using or include statement to join the files. The Wix Linker light is just getting all files together witch contains items references directly or inderectly from the Product.wxs.

We decided to put the major logic in the Product.wxs and have the UICustomizations an the definition of the Files in separate wxs files.

 

A simple Fragment is:

 

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    <Fragment>
    <!--****************************************************************************************-->
    <!-- Define the Files and Services to be installed here –>
    <!--****************************************************************************************-->

    <DirectoryRef Id="APPLICATIONROOTDIRECTORY">
      <Component Id="PTTester.exe" Guid="{90EFC2EE-4AD3-F051-86A0-29C35B823F7B}">
        <File Id="PTTester.exe" Source="..\Bin\Debug\PTTester.exe" KeyPath="yes" Checksum="yes" />
      </Component>
    </DirectoryRef>

  </Fragment>
</Wix>

 

 

<= Back to Content

Tags: ,

Comments

10/29/2009 9:21:16 PM #

trackback

Home - Wix

Home - Wix

Blog of MaHop.net |

About MaHop.Net

Just look on our Webpage http://www.mahop.net

Tag cloud