Tech Support > Microsoft Windows > Drivers > Suggestion for DIFxApp: Path-to-lib environment variable
Suggestion for DIFxApp: Path-to-lib environment variable
Posted by Ilya Konstantinov on August 21st, 2005


I'm not sure what's the right address for DIFxApp feedback is, so I'm
posting it here, hoping for some feedback from MS people or anyone else
having a better suggestion...

I've recently integrated DIFxApp into our project build and I sadly
realized I cannot avoid specifying absolute paths in my project
settings since I somehow have to refer to DIFxApp.wixlib (yes, we use
WiX).

Many libraries, within their installers, take care to create an
environment variable pointing at its' install location so that one
could refer to the headers/libraries within their build settings
without giving absolute paths (which are evil, since different
developers may ellect to install their stuff at different locations).

For example, if DIFxApp's installer had created such a variable, I
could refer to the DIFxApp lib within my Custom Build Settings as
"$(DIFxAppPath)\...\DIFxApp.wixlib". Right now I've created such an
environment variable myself but it'd be much nicer if that'll be
automatic so it'll work ouf-of-the-box on all of my team's computers.

Posted by Pavel A. on August 22nd, 2005


"Ilya Konstantinov" wrote:
Maybe this will help?
http://www.lyon-smith.org/envsetter.aspx

--PA


Posted by Ilya Konstantinov on August 22nd, 2005


Pavel A. wrote:
That's exactly what I *don't* want.
Suppose I add DIFxAppPath="C:\Program Files\Driver Installation Tools"
to this Project.environ file and then add this Project.environ file to
my Source Control server... When a different team member will fetch
this project off Source Control, he'll get those environment variables
as well. What if his Program Files are located on D:? His build will
fail. If he'll edit the .environ file to reflect his Program Files
location, he'll make my build fail, since my Program Files are on C:.

What I really want is the DIFxAppPath environment variable to be set
machine-wide (but not project/solution wide, since projects may build
on different machines with different install locations). This job will
be best done by the DIFxApp's Installer, since it determines the
installation location.


Posted by Pavel A. on August 23rd, 2005


Write your own extension like this one, that will get the difx path from registry,
so you don't need any XML.
--PA

"Ilya Konstantinov" <ilya.konstantinov@gmail.com> wrote in message news:1124740959.774015.133510@g49g2000cwa.googlegr oups.com...



Similar Posts