0
votes

I am creating WiX installer to drop my custom VS 2010 extension inside Visual Studio Extensions folder. I want to use the system environment variable VS100COMNTOOLS to figure out the VS installed path inside WiX script. I would like to use a relative path syntax like %VS100COMNTOOLS%\..\IDE\Extensions to get to the C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions folder or wherever user chose to install VS 2010.

Can somebody please suggest me how I achieve this in Wix script?

1
This requires a bit of coding, see: stackoverflow.com/questions/3459998/…Erik A. Brandstadmoen
I could not make it work with a path value that involves relative path as mentioned in my post. Any thoughts?siva
I found out this chrisedwards.dreamhosters.com/blog/2010/01/16/… but does not work with relative paths either :(siva

1 Answers

1
votes

WixVSExtension has a bunch of properties available for Visual Studio paths. Not that one in particular but you can use the technique outlined in the question Erik pointed out to construct it from one of the WixVSExtension properties.