This is more of a VC++ question. However, I always thought those things were
controlled by:

INCLUDE, LIB, LIBPATH

environment variables. You might take a look at vcvars*.bat included with
Visual Studio install.

On Thu, Sep 9, 2010 at 2:25 PM, Hoyt, David <ho...@llnl.gov> wrote:

> I know how to add environment variables using WiX -- I'm not worried about
> adding dll's to the system's search path (i.e. augmenting %PATH%) -- it's
> knowing the names and locations of where to add these values. e.g. is there
> a registry key that MSVC (and by extension Visual Studio) will use to
> determine include paths for C headers? If not, how do I get msbuild to
> recognize an add'l include path. e.g. I have a C file:
>
> #include <my_new_header.h>
>
> static void blah() {
> }
>
> My installer will be adding "my_new_header.h" somewhere and I'd like for
> the C compiler to just automatically pick up where the header is located
> (since I'm using <>'s in #include <my_new_header.h>, it knows to search for
> the header in its default search paths). Then I'd like to do the same for
> .libs so the linker can pick up my .libs automatically.
>
> Is there anything in WiX that facilitates doing this easily -- if so, what?
> If I have to do it manually by creating registry keys/env. vars. that's fine
> - but does anyone know the names of the env. vars. or registry keys to use?
> If I have to modify an msbuild file somewhere, which one is it? How can I go
> about accomplishing this?
>
> Thanks a ton! (c:
>
> - David Hoyt
>
> -----Original Message-----
> From: Rob Mensching [mailto:r...@robmensching.com]
> Sent: Thursday, September 09, 2010 10:50 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Adding MSVC Include/Lib path
>
> Environment element should be able to do that.
>
> On Wed, Sep 8, 2010 at 7:14 PM, Hoyt, David <ho...@llnl.gov> wrote:
>
> > Hello,
> >
> > I'm having trouble finding documentation on how to add an include and lib
> > path to MSVC's paths. I essentially have an SDK I'm setting up and I have
> a
> > large number of C headers and libs - so it'd be nice if it could
> > automatically add itself to the list of paths. I'm not sure how well it
> > would work w/ Visual Studio 2008 and below. For Visual Studio 2010 and
> > msbuild, what are my options?
> >
> > Thanks,
> > - David Hoyt
> >
> >
> ------------------------------------------------------------------------------
> > This SF.net Dev2Dev email is sponsored by:
> >
> > Show off your parallel programming skills.
> > Enter the Intel(R) Threading Challenge 2010.
> > http://*p.sf.net/sfu/intel-thread-sfd
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://*lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
>
>
> --
> virtually, Rob Mensching - http://*RobMensching.com LLC
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://*p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://*lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
> ------------------------------------------------------------------------------
> Automate Storage Tiering Simply
> Optimize IT performance and efficiency through flexible, powerful,
> automated storage tiering capabilities. View this brief to learn how
> you can reduce costs and improve performance.
> http://p.sf.net/sfu/dell-sfdev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


-- 
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful, 
automated storage tiering capabilities. View this brief to learn how
you can reduce costs and improve performance. 
http://p.sf.net/sfu/dell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to