@@ -82,9 +82,17 @@ if defined noetw set noetw_arg=--without-etw& set noetw_msi_arg=/p:NoETW=1
8282if defined noperfctr set noperfctr_arg = --without-perfctr& set noperfctr_msi_arg = /p:NoPerfCtr=1
8383
8484@ rem Look for Visual Studio 2013
85+ echo Looking for Visual Studio 2013
8586if not defined VS120COMNTOOLS goto vc-set-2012
8687if not exist " %VS120COMNTOOLS% \..\..\vc\vcvarsall.bat" goto vc-set-2012
87- if defined msi if not exist " %WIX% \SDK\VS2013" goto vc-set-2012
88+ echo Found Visual Studio 2013
89+ if defined msi (
90+ echo Looking for WiX installation for VStudio 2013...
91+ if not exist " %WIX% \SDK\VS2013" (
92+ echo Failed to find WiX install for VStudio 2013
93+ goto vc-set-2012
94+ )
95+ )
8896call " %VS120COMNTOOLS% \..\..\vc\vcvarsall.bat"
8997if not defined VCINSTALLDIR goto msbuild-not-found
9098set GYP_MSVS_VERSION = 2013
@@ -93,19 +101,35 @@ goto msbuild-found
93101
94102:vc-set-2012
95103@ rem Look for Visual Studio 2012
104+ echo Looking for Visual Studio 2012
96105if not defined VS110COMNTOOLS goto vc-set-2010
97106if not exist " %VS110COMNTOOLS% \..\..\vc\vcvarsall.bat" goto vc-set-2010
98- if defined msi if not exist " %WIX% \SDK\VS2012" goto vc-set-2010
107+ echo Found Visual Studio 2012
108+ if defined msi (
109+ echo Looking for WiX installation for VStudio 2012...
110+ if not exist " %WIX% \SDK\VS2012" (
111+ echo Failed to find WiX install for VStudio 2012
112+ goto vc-set-2010
113+ )
114+ )
99115call " %VS110COMNTOOLS% \..\..\vc\vcvarsall.bat"
100116if not defined VCINSTALLDIR goto msbuild-not-found
101117set GYP_MSVS_VERSION = 2012
102118set PLATFORM_TOOLSET = v110
103119goto msbuild-found
104120
105121:vc-set-2010
122+ echo Looking for Visual Studio 2010
106123if not defined VS100COMNTOOLS goto msbuild-not-found
107124if not exist " %VS100COMNTOOLS% \..\..\vc\vcvarsall.bat" goto msbuild-not-found
108- if defined msi if not exist " %WIX% \SDK\VS2010" goto wix-not-found
125+ echo Found Visual Studio 2010
126+ if defined msi (
127+ echo Looking for WiX installation for VStudio 2010...
128+ if not exist " %WIX% \SDK\VS2010" (
129+ echo Failed to find WiX install for VStudio 2010
130+ goto wix-not-found
131+ )
132+ )
109133call " %VS100COMNTOOLS% \..\..\vc\vcvarsall.bat"
110134if not defined VCINSTALLDIR goto msbuild-not-found
111135set GYP_MSVS_VERSION = 2010
0 commit comments