[wix-users] Accessing VS command prompt only variable
Slide
slide.o.mix at gmail.com
Fri Aug 3 08:26:43 PDT 2018
You could use vswhere. It is always installed at the same location as of VS
15.2: "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe"
It allows you to interogate where components are located. You can look at
the component list here:
https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-build-tools
I use it to build IronPython by doing something like this to get the path
to msbuild:
vswhere -latest -requires Microsoft.Component.MSBuild -property
installationPath
On Fri, Aug 3, 2018, 07:34 Edwin Castro via wix-users <
wix-users at lists.wixtoolset.org> wrote:
> Ensure the VS command prompt bat script is run before you run your build?
>
> --
> Edwin G. Castro
>
>
> On Fri, Aug 3, 2018, 03:44 Ken Wood via wix-users <
> wix-users at lists.wixtoolset.org> wrote:
>
> > Hi,
> >
> > I can access the normal environment variables within wix but the Visual
> > studio command prompt only variables don't seem available. In
> particular, I
> > want to use VCToolsRedistDir as we have many versions of VS2017 installed
> > on developers/build machines with different update versions and I don't
> > want to hard code the update version number or the install type (some are
> > professional and some enterprise).
> >
> > Any help will be very helpful
> >
> > Thanks in advance
> >
> > Ken
> >
> >
> >
> --------------------------------------------------------------------------------------------------
> > This email and any attachments are confidential and are for the use of
> the
> > addressee only. If you are not the addressee, you must not use or
> disclose
> > the
> > contents to any other person. Please immediately notify the sender and
> > delete the email. Statements and opinions expressed here may not
> > represent those of the company. Email correspondence is monitored by
> > the company. This information may be subject to export control
> > regulation. You are obliged to comply with such regulations.
> > Our data privacy notice<http://www.renishaw.com/privacy> sets out how
> any
> > personal data that we collect about you will be handled.
> >
> > Renishaw plc (company number 1106260), Renishaw UK Sales Limited (company
> > number 1418812) and Wotton Travel Limited (company
> > number 01973158) are companies registered in England and Wales with a
> > registered office
> > at New Mills, Wotton-under-Edge, Gloucestershire, GL12 8JR,
> > United Kingdom, Telephone +44 1453 524524 <+44%201453%20524524>.
> >
> >
> --------------------------------------------------------------------------------------------------
> >
> > ____________________________________________________________________
> > WiX Toolset Users Mailing List provided by FireGiant
> > http://www.firegiant.com/
> >
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
More information about the wix-users
mailing list