Thanks a lot for the replies.  I'm hitting myself on the head - just 5 minutes 
before reading both replies I had given up with the hand-editing and added a 
Wix project.  So I now have exactly what Christopher recommended :P

I created a separate Solution configuration that just builds Wix projects (i.e. 
the only one I have at the moment), then just use the MSBuild task in my build 
file to build them.  Does that sound sensible or have I overcomplicated things?

Anyhow, thanks again - everything's working.

Adam

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neil Enns
Sent: 17 July 2008 15:14
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Wix and MSBuild

Adam,

WiX ships with complete MSBuild support through a set of tasks and targets, 
there's no need to try and hand-edit things.

Do you have Visual Studio installed? If so, create a new Visual Studio project 
and look for a WiX node in the new project dialog. Create that, add the 
contents of your existing ProjA.wxs to the .wxs file that's created, and build. 
Voila!

Neil

________________________________
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Adam Connelly [EMAIL 
PROTECTED]
Sent: Thursday, July 17, 2008 6:29 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Wix and MSBuild

I actually sorted the problem (a typo :().  I would still be interested to find 
out how others structure their projects.

Adam

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Connelly
Sent: 17 July 2008 11:19
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Wix and MSBuild

Hi,

I currently trying to add a task into my MSBuild file that will create the 
various MSI files needed for the project.  I've got the following file 
structure:

Root/
  Build.xml
  Code/
    Deploy/
      ProjA
      ProjB
  Installs/
    ProjA.wxs

Sorry if that's not amazingly clear.  Basically, all the assemblies, etc for 
each project are in Code/Deploy/ProjX, and the wix file is in 
Installs/ProjX.wxs.  I want to be able to build an installer while keeping this 
structure if possible.

The problem I'm having is that although candle.exe runs fine, light.exe can't 
seem to find the source files no-matter if I set the -b switch, or if I alter 
the Source attributes in the wxs file.

I guess what I really want to know is how do other people structure their 
builds when there may be multiple projects needing installers built, etc.

Sorry for such a broad question.

Cheers,
Adam
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to