I've gone for the "Add as Link" approach which has done the trick
nicely.
Thanks everyone.

David

-----Original Message-----
From: Tunney, Stephen [mailto:stephen.tun...@nuance.com] 
Sent: 09 June 2014 14:09
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Is it possible to add an existing file to
Visual Studio WiX Setup project without it making a local copy?

You can also do this by right clicking on the project and Add -->
"Existing Item.."

When you find the file you want, don't double click, go down to the Add
button and you will notice a tiny arrow to the right, click and then
select "Add As Link".

That should do it, and eliminates having to modify pesky xml files :)

-----Original Message-----
From: Phill Hogland [mailto:phogl...@rimage.com]
Sent: June-09-14 8:51 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Is it possible to add an existing file to
Visual Studio WiX Setup project without it making a local copy?

I used to use a wixlib project but when I added multiplatform projects
and tried to use MSBuild directly for my build process I had problems
with a x64 project failing due to a dependency on the wixlib project
(which had already been built) but would not build with platform set to
x64.  

So for wxs file I have a 'CommonSrc' project.  (A MSI setup project
works, but is never built.)  I use this project only to edit the wxs as
needed (with comments in the wxs indicating that it should only be
edited in the CommonSrc project).  I then run a script file which copies
the file to each project where this wxs file is needed.  (Not exactly
what you are asking for, but since I only edit the file in the
'CommonSrc' location I no longer have confusion related to managing the
various copies.)

For wxi files that are common I place them in a common Include folder,
and add the following to the project file.
    <CompilerAdditionalOptions>
      -I"$(ReleaseVersionedProjectRoot)\Common\Src\Includes"
    </CompilerAdditionalOptions>

Then at the top of the one wxi file that I have in each project I add
the following.
<?include commonIncludes.wxi ?>

The various wxs files include this local wix file, and by extension have
access to the information in my various common wxi file. 

Again not exactly what you are looking for, but maybe it can help.



--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Is-it-poss
ible-to-add-an-existing-file-to-Visual-Studio-WiX-Setup-project-without-
it-making-a-local--tp7595113p7595114.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------
------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk
Solutions Find What Matters Most in Your Big Data with HPCC Systems Open
Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://www.hpccsystems.com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk
Solutions Find What Matters Most in Your Big Data with HPCC Systems Open
Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://www.hpccsystems.com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://www.hpccsystems.com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to