File tree Expand file tree Collapse file tree 4 files changed +31
-11
lines changed
Expand file tree Collapse file tree 4 files changed +31
-11
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,18 @@ set BINDIR=%~dp0..\%1\net40\bin
2626if /i " %PROCESSOR_ARCHITECTURE% " == " x86" set X86_PROGRAMFILES = %ProgramFiles%
2727if /I " %PROCESSOR_ARCHITECTURE% " == " AMD64" set X86_PROGRAMFILES = %ProgramFiles(x86)%
2828
29- set GACUTIL = " %X86_PROGRAMFILES% \Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\gacutil.exe"
30- set SN32 = " %X86_PROGRAMFILES% \Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\sn.exe"
31- set SN64 = " %X86_PROGRAMFILES% \Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\x64\sn.exe"
29+ set REGEXE32BIT = reg.exe
30+ if not " %OSARCH% " == " x86" set REGEXE32BIT = %WINDIR% \syswow64\reg.exe
31+
32+ FOR /F " tokens=2* delims= " %%A IN ('%REGEXE32BIT% QUERY " HKLM\Software\Microsoft\Microsoft SDKs\NETFXSDK\4.6\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS = %%B
33+ if " %WINSDKNETFXTOOLS% " == " " FOR /F " tokens=2* delims= " %%A IN ('%REGEXE32BIT% QUERY " HKLM\Software\Microsoft\Microsoft SDKs\Windows\v8.1A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS = %%B
34+ if " %WINSDKNETFXTOOLS% " == " " FOR /F " tokens=2* delims= " %%A IN ('%REGEXE32BIT% QUERY " HKLM\Software\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS = %%B
35+ if " %WINSDKNETFXTOOLS% " == " " FOR /F " tokens=2* delims= " %%A IN ('%REGEXE32BIT% QUERY " HKLM\Software\Microsoft\Microsoft SDKs\Windows\v7.1\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS = %%B
36+ if " %WINSDKNETFXTOOLS% " == " " FOR /F " tokens=2* delims= " %%A IN ('%REGEXE32BIT% QUERY " HKLM\Software\Microsoft\Microsoft SDKs\Windows\v7.0A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS = %%B
37+
38+ set GACUTIL = " %WINSDKNETFXTOOLS% gacutil.exe"
39+ set SN32 = " %WINSDKNETFXTOOLS% sn.exe"
40+ set SN64 = " %WINSDKNETFXTOOLS% x64\sn.exe"
3241set NGEN32 = %windir% \Microsoft.NET\Framework\v4.0.30319\ngen.exe
3342set NGEN64 = %windir% \Microsoft.NET\Framework64\v4.0.30319\ngen.exe
3443
Original file line number Diff line number Diff line change @@ -116,7 +116,8 @@ if "%OSARCH%"=="AMD64" set X86_PROGRAMFILES=%ProgramFiles(x86)%
116116set REGEXE32BIT = reg.exe
117117if not " %OSARCH% " == " x86" set REGEXE32BIT = %WINDIR% \syswow64\reg.exe
118118
119- FOR /F " tokens=2* delims= " %%A IN ('%REGEXE32BIT% QUERY " HKLM\Software\Microsoft\Microsoft SDKs\Windows\v8.1A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS = %%B
119+ FOR /F " tokens=2* delims= " %%A IN ('%REGEXE32BIT% QUERY " HKLM\Software\Microsoft\Microsoft SDKs\NETFXSDK\4.6\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS = %%B
120+ if " %WINSDKNETFXTOOLS% " == " " FOR /F " tokens=2* delims= " %%A IN ('%REGEXE32BIT% QUERY " HKLM\Software\Microsoft\Microsoft SDKs\Windows\v8.1A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS = %%B
120121if " %WINSDKNETFXTOOLS% " == " " FOR /F " tokens=2* delims= " %%A IN ('%REGEXE32BIT% QUERY " HKLM\Software\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS = %%B
121122if " %WINSDKNETFXTOOLS% " == " " FOR /F " tokens=2* delims= " %%A IN ('%REGEXE32BIT% QUERY " HKLM\Software\Microsoft\Microsoft SDKs\Windows\v7.1\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS = %%B
122123if " %WINSDKNETFXTOOLS% " == " " FOR /F " tokens=2* delims= " %%A IN ('%REGEXE32BIT% QUERY " HKLM\Software\Microsoft\Microsoft SDKs\Windows\v7.0A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS = %%B
Original file line number Diff line number Diff line change @@ -98,10 +98,11 @@ REM == Use the same runtime as our architecture
9898REM == ASSUMPTION: This could be a good or bad thing.
9999IF /I NOT " %PROCESSOR_ARCHITECTURE% " == " x86" set CORDIR = %CORDIR:Framework =Framework64 %
100100
101- FOR /F " tokens=2*" %%A IN ('reg QUERY " %REG_SOFTWARE% \Microsoft\Microsoft SDKs\Windows\v8.1A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET CORSDK = %%B
102-
103- IF " %CORSDK% " == " " FOR /F " tokens=2*" %%A IN ('reg QUERY " HKLM\Software\Microsoft\Microsoft SDKs\Windows" /v CurrentInstallFolder') DO SET CORSDK = %%B Bin
104- IF NOT " %CORDIR40% " == " " IF EXIST " %CORSDK% \NETFX 4.0 Tools" set CORSDK = %CORSDK% \NETFX 4.0 Tools
101+ FOR /F " tokens=2* delims= " %%A IN ('reg QUERY " %REG_SOFTWARE% \Microsoft\Microsoft SDKs\NETFXSDK\4.6\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET CORSDK = %%B
102+ if " %CORSDK% " == " " FOR /F " tokens=2* delims= " %%A IN ('reg QUERY " %REG_SOFTWARE% \Microsoft\Microsoft SDKs\Windows\v8.1A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET CORSDK = %%B
103+ if " %CORSDK% " == " " FOR /F " tokens=2* delims= " %%A IN ('reg QUERY " %REG_SOFTWARE% \Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET CORSDK = %%B
104+ if " %CORSDK% " == " " FOR /F " tokens=2* delims= " %%A IN ('reg QUERY " %REG_SOFTWARE% \Microsoft\Microsoft SDKs\Windows\v7.1\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET CORSDK = %%B
105+ if " %CORSDK% " == " " FOR /F " tokens=2* delims= " %%A IN ('reg QUERY " %REG_SOFTWARE% \Microsoft\Microsoft SDKs\Windows\v7.0A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET CORSDK = %%B
105106
106107REM == Fix up CORSDK for 64bit platforms...
107108IF /I " %PROCESSOR_ARCHITECTURE% " == " AMD64" SET CORSDK = %CORSDK% \x64
Original file line number Diff line number Diff line change @@ -22,9 +22,18 @@ set BINDIR=%~dp0..\%1\net40\bin
2222if /i " %PROCESSOR_ARCHITECTURE% " == " x86" set X86_PROGRAMFILES = %ProgramFiles%
2323if /I " %PROCESSOR_ARCHITECTURE% " == " AMD64" set X86_PROGRAMFILES = %ProgramFiles(x86)%
2424
25- set GACUTIL = " %X86_PROGRAMFILES% \Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\gacutil.exe"
26- set SN32 = " %X86_PROGRAMFILES% \Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\sn.exe"
27- set SN64 = " %X86_PROGRAMFILES% \Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\x64\sn.exe"
25+ set REGEXE32BIT = reg.exe
26+ if not " %OSARCH% " == " x86" set REGEXE32BIT = %WINDIR% \syswow64\reg.exe
27+
28+ FOR /F " tokens=2* delims= " %%A IN ('%REGEXE32BIT% QUERY " HKLM\Software\Microsoft\Microsoft SDKs\NETFXSDK\4.6\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS = %%B
29+ if " %WINSDKNETFXTOOLS% " == " " FOR /F " tokens=2* delims= " %%A IN ('%REGEXE32BIT% QUERY " HKLM\Software\Microsoft\Microsoft SDKs\Windows\v8.1A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS = %%B
30+ if " %WINSDKNETFXTOOLS% " == " " FOR /F " tokens=2* delims= " %%A IN ('%REGEXE32BIT% QUERY " HKLM\Software\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS = %%B
31+ if " %WINSDKNETFXTOOLS% " == " " FOR /F " tokens=2* delims= " %%A IN ('%REGEXE32BIT% QUERY " HKLM\Software\Microsoft\Microsoft SDKs\Windows\v7.1\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS = %%B
32+ if " %WINSDKNETFXTOOLS% " == " " FOR /F " tokens=2* delims= " %%A IN ('%REGEXE32BIT% QUERY " HKLM\Software\Microsoft\Microsoft SDKs\Windows\v7.0A\WinSDK-NetFx40Tools" /v InstallationFolder') DO SET WINSDKNETFXTOOLS = %%B
33+
34+ set GACUTIL = " %WINSDKNETFXTOOLS% gacutil.exe"
35+ set SN32 = " %WINSDKNETFXTOOLS% sn.exe"
36+ set SN64 = " %WINSDKNETFXTOOLS% x64\sn.exe"
2837set NGEN32 = %windir% \Microsoft.NET\Framework\v4.0.30319\ngen.exe
2938set NGEN64 = %windir% \Microsoft.NET\Framework64\v4.0.30319\ngen.exe
3039
You can’t perform that action at this time.
0 commit comments