What you may instead consider is placing the WiX toolset into your sources (something like under %BASEDIR%\external\wix) and place it into your source control. Then reference that location (or locations derived from that location) in your build scripts instead of using the %WIX% environment var. Then it doesn't matter if they install wix or not, it is in your sources.
-----Original Message----- From: Bruce Cran [mailto:br...@cran.org.uk] Sent: Saturday, January 16, 2010 2:10 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Avoiding hard-coding the path to the WiX SDK when using the WDK On Sat, 16 Jan 2010 01:51:45 -0800 "Blair" <os...@live.com> wrote: > Install WiX to a different folder? I guess that's probably the only solution. I was hoping to avoid that since the directory under Program Files is the default location, and anyone who wants to build my project will need to have a custom installation too. -- Bruce Cran > > -----Original Message----- > From: Bruce Cran [mailto:br...@cran.org.uk] > Sent: Friday, January 15, 2010 5:06 AM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Avoiding hard-coding the path to the WiX SDK > when using the WDK > > I'm using the WDK to build a C++ custom action DLL that gets included > in my MSI that I create using WiX 3.5. The problem I've come across > is that the WiX headers are located in C:\Program Files (x86)\Windows > Installer XML v3.5\SDK\inc, and the WDK doesn't appear to recognise > long filenames. > > I've tried adding $(WIX)SDK\inc both with and without > quotes to the 'sources' file, but the only thing that works is using > C:\PROGRA~2\WINDOWS~1.5\SDK\doc. I'd rather not use that because > it'll be wrong on 32-bit Windows. > > Does anyone know a way around this to avoid hard-coding paths that > other developers are going to have to change for their machines? > ---------------------------------------------------------------------------- -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users