Thanks for all the responses so far guys. I have added the custom action 
project as a reference to my WiX project and it is now rebuilding the WiX 
project correctly when I change the custom action code.

However, what about keeping track of additional files like config files, text 
files, etc for your application? Here's an example WiX file I knocked up to 
demonstrate:

---
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
        <Product Id="058bed9b-5d44-4de0-b648-d2c9c5dd2e59" 
Name="HelloWorldSetup" Language="1033" Version="1.0.0.0" 
Manufacturer="HelloWorldSetup" 
UpgradeCode="e320319d-b400-4c14-a8c1-56a396258224">
                <Package InstallerVersion="200" Compressed="yes" />
                <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
                <Directory Id="TARGETDIR" Name="SourceDir">
                        <Directory Id="ProgramFilesFolder">
                                <Directory Id="INSTALLLOCATION" 
Name="HelloWorldSetup">
                                        <Component Id="HelloWorldAppComponent" 
Guid="818a09a6-9ae6-4396-aa35-79a119b33bef">
            <File Id="HelloWorldAppFile" 
Name="$(var.HelloWorldApp.TargetFileName)" 
Source="$(var.HelloWorldApp.TargetPath)"
              DiskId="1" KeyPath="yes" />
                                        </Component>
          <Component Id="HelloWorldConfigComponent" 
Guid="{62430C5F-A5E5-4F44-974A-7588264C0CDC}">
            <File Id="HelloWorldConfigFile" Name="myconfig.txt" 
Source="..\AdditionalFiles\myconfig.txt" DiskId="1" KeyPath="yes" />
          </Component>
                                </Directory>
                        </Directory>
                </Directory>
                <Feature Id="ProductFeature" Title="HelloWorldSetup" Level="1">
                        <ComponentRef Id="HelloWorldAppComponent" />
      <ComponentRef Id="HelloWorldConfigComponent" />
                </Feature>
        </Product>
</Wix>
---

With the above source, if I change the contents of "myconfig.txt" and then 
build my Visual Studio solution, WiX does not re-build the MSI.

Is there a way to make this work?

Thanks again!

Mike

-----Original Message-----
From: Jeff Cutting [mailto:jcutt...@microsoft.com] 
Sent: 30 March 2010 20:04
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] WiX, Votive, installed files and incremental builds


Actually, you can reference other projects directly from your WiX project. 
If you add your custom action project(s) to the same solution as the WiX
projects, you can just add a project reference to any WiX projects that use
the custom action DLL.  When you change something in the custom action code,
rebuilding your WiX project will rebuild the custom actions as well.
-- 
View this message in context: 
http://n2.nabble.com/WiX-Votive-installed-files-and-incremental-builds-tp4825468p4826525.html
Sent from the wix-users mailing list archive at Nabble.com.



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to