Skip to content

Commit 84cd9a7

Browse files
author
Julien Gilli
committed
win: display more info from vcbuild.bat
Output info when looking for installed Visual Studio versions and corresponding WiX SDK (if a MSI installer is being generated). This helps troubleshooting issues with Windows development environments when generating Windows installers.
1 parent bcb4612 commit 84cd9a7

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

vcbuild.bat

+27-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,17 @@ if defined noetw set noetw_arg=--without-etw& set noetw_msi_arg=/p:NoETW=1
8282
if 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
8586
if not defined VS120COMNTOOLS goto vc-set-2012
8687
if 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+
)
8896
call "%VS120COMNTOOLS%\..\..\vc\vcvarsall.bat"
8997
if not defined VCINSTALLDIR goto msbuild-not-found
9098
set 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
96105
if not defined VS110COMNTOOLS goto vc-set-2010
97106
if 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+
)
99115
call "%VS110COMNTOOLS%\..\..\vc\vcvarsall.bat"
100116
if not defined VCINSTALLDIR goto msbuild-not-found
101117
set GYP_MSVS_VERSION=2012
102118
set PLATFORM_TOOLSET=v110
103119
goto msbuild-found
104120

105121
:vc-set-2010
122+
echo Looking for Visual Studio 2010
106123
if not defined VS100COMNTOOLS goto msbuild-not-found
107124
if 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+
)
109133
call "%VS100COMNTOOLS%\..\..\vc\vcvarsall.bat"
110134
if not defined VCINSTALLDIR goto msbuild-not-found
111135
set GYP_MSVS_VERSION=2010

0 commit comments

Comments
 (0)