Skip to content

Commit f7b6bf3

Browse files
authored
Add files via upload
1 parent fa1a67d commit f7b6bf3

File tree

1 file changed

+103
-34
lines changed

1 file changed

+103
-34
lines changed

vs_installer.bat

+103-34
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
@echo off
22

3-
SET _VERSION=2017
43
goto :BatchGotAdmin
54

65
:--------------------------------------
@@ -11,16 +10,16 @@ goto :BatchGotAdmin
1110

1211
:: DOWNLOAD SETUP
1312
set _DOWNLOAD_SETUP=1
14-
set download_setup_exe="%~dp0\vs_ultimate.exe"
15-
set download_setup_arg=/Layout "%~dp0\vst_setup" /NoRestart /Full
13+
set download_setup_exe="%~dp0\vs_ultimate_2012.exe"
14+
set download_setup_arg=/Layout "%~dp0\vs_ultimate_2012" /NoRestart /Full
1615
set download_setup_recommended_arg=
1716
set download_setup_optional_arg=
1817
set download_fix_arg=
1918

2019
:: DOWNLOAD UPDATE
2120
set _DOWNLOAD_UPDATE=1
2221
set download_update_exe="%~dp0\vs_update.exe"
23-
set download_update_arg=/Layout "%~dp0\vst_update" /NoRestart /Full
22+
set download_update_arg=/Layout "%~dp0\vst_update_2012" /NoRestart /Full
2423

2524
:: CERTIFICATE
2625
set _INSTALL_CERTIFICATE=0
@@ -34,24 +33,24 @@ goto :BatchGotAdmin
3433

3534
:: INSTALL SETUP
3635
set _INSTALL_SETUP=1
37-
set install_setup_exe="%~dp0\vst_setup\vs_ultimate.exe"
36+
set install_setup_exe="%~dp0\vs_ultimate_2012\vs_ultimate.exe"
3837
set install_setup_arg=/NoWeb /NoRestart /ProductKey RBCXF-CVBGR-382MK-DFHJ4-C69G8
3938

4039
:: INSTALL UPDATE
4140
set _INSTALL_UPDATE=1
42-
set install_update_exe="%~dp0\vst_update\VS2012.5.exe"
41+
set install_update_exe="%~dp0\vst_update_2012\VS2012.5.exe"
4342
set install_update_arg=/NoWeb /NoRestart
4443

4544
:: INSTALL LANGUAGE
4645
set _INSTALL_LANGUAGE=1
4746
::tr_visual_studio_2012_language_pack_x86_920748.exe
48-
set install_language_setup_exe="%~dp0\vst_language\vs_language_tr.exe"
47+
set install_language_setup_exe="%~dp0\vst_language_2012\vs_language_tr.exe"
4948
set install_language_setup_arg=
5049

5150
:: INSTALL HELP
5251
::Microsoft.HelpViewer install
5352
set _INSTALL_HELP=1
54-
set install_help_folder="%~dp0\vst_help"
53+
set install_help_folder="%~dp0\vst_help_2012"
5554
REM set help_default_path="%ProgramData%\Microsoft\HelpLibrary2\Catalogs\VisualStudio11"
5655
set install_help_reg_key="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Help\v2.0\Catalogs\VisualStudio11"
5756
set install_help_reg_key_64="HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Help\v2.0\Catalogs\VisualStudio11"
@@ -69,8 +68,8 @@ goto :BatchGotAdmin
6968

7069
:: DOWNLOAD SETUP
7170
set _DOWNLOAD_SETUP=1
72-
set download_setup_exe="%~dp0\vs_ultimate.exe"
73-
set download_setup_arg=/Layout "%~dp0\vst_setup" /NoRestart /Full
71+
set download_setup_exe="%~dp0\vs_ultimate_2013.exe"
72+
set download_setup_arg=/Layout "%~dp0\vs_ultimate_2013" /NoRestart /Full
7473
set download_setup_recommended_arg=
7574
set download_setup_optional_arg=
7675
set download_fix_arg=
@@ -92,7 +91,7 @@ goto :BatchGotAdmin
9291

9392
:: INSTALL SETUP
9493
set _INSTALL_SETUP=1
95-
set install_setup_exe="%~dp0\vst_setup\vs_ultimate.exe"
94+
set install_setup_exe="%~dp0\vs_ultimate_2013\vs_ultimate.exe"
9695
set install_setup_arg=/NoWeb /NoRestart /ProductKey 87DQC-G8CYR-CRPJ4-QX9K8-RFV2B
9796

9897
:: INSTALL UPDATE
@@ -126,8 +125,8 @@ goto :BatchGotAdmin
126125

127126
:: DOWNLOAD SETUP
128127
set _DOWNLOAD_SETUP=1
129-
set download_setup_exe="%~dp0\vs_enterprise.exe"
130-
set download_setup_arg=/layout "%~dp0\vst_setup" /NoRestart /Full
128+
set download_setup_exe="%~dp0\vs_enterprise_2015.exe"
129+
set download_setup_arg=/layout "%~dp0\vs_enterprise_2015" /NoRestart /Full
131130
set download_setup_recommended_arg=
132131
set download_setup_optional_arg=
133132
set download_fix_arg=
@@ -149,7 +148,7 @@ goto :BatchGotAdmin
149148

150149
:: INSTALL SETUP
151150
set _INSTALL_SETUP=1
152-
set install_setup_exe="%~dp0\vst_setup\vs_enterprise.exe"
151+
set install_setup_exe="%~dp0\vs_enterprise_2015\vs_enterprise.exe"
153152
set install_setup_arg=/NoWeb /NoRestart /ProductKey HM6NR-QXX7C-DFW2Y-8B82K-WTYJV
154153

155154
:: INSTALL UPDATE
@@ -184,8 +183,8 @@ goto :BatchGotAdmin
184183

185184
:: DOWNLOAD SETUP
186185
set _DOWNLOAD_SETUP=1
187-
set download_setup_exe="%~dp0\vs_enterprise.exe"
188-
set download_setup_arg=--layout "%~dp0\vst_setup" --wait --norestart --all --lang en-US tr-TR
186+
set download_setup_exe="%~dp0\vs_enterprise_2017.exe"
187+
set download_setup_arg=--layout "%~dp0\vs_enterprise_2017" --wait --all --lang en-US tr-TR
189188
set download_setup_recommended_arg=--includeOptional --includeRecommended
190189
set download_setup_optional_arg=
191190
set download_fix_arg=%download_setup_arg% %download_setup_recommended_arg% %download_setup_optional_arg% --fix
@@ -197,21 +196,21 @@ goto :BatchGotAdmin
197196

198197
:: CERTIFICATE
199198
set _INSTALL_CERTIFICATE=0
200-
set "install_cert_folder=%~dp0\vst_setup\certificates"
199+
set "install_cert_folder=%~dp0\vs_enterprise_2017\certificates"
201200
set install_cert_exe="%~dp0\certmgr%_OSarch%.exe"
202201
rem set install_certs="manifestSignCertificates.p12;Microsoft Code Signing PCA 2011;LocalMachine CA|manifestSignCertificates.p12;Microsoft Root Certificate Authority;LocalMachine root|manifestCounterSignCertificates.p12;Microsoft Time-Stamp PCA 2010;LocalMachine CA|manifestCounterSignCertificates.p12;Microsoft Root Certificate Authority;LocalMachine root|vs_installer_opc.SignCertificates.p12;Microsoft Code Signing PCA;LocalMachine CA|vs_installer_opc.SignCertificates.p12;Microsoft Root Certificate Authority;LocalMachine root"
203202
rem For Visual Studio 2017 version 15.8 Preview 2 or later:
204203
set install_certs="manifestRootCertificate.cer;Microsoft Root Certificate Authority 2011;LocalMachine root|manifestCounterSignRootCertificate.cer;Microsoft Root Certificate Authority 2010;LocalMachine root|vs_installer_opc.RootCertificate.cer;Microsoft Root Certificate Authority;LocalMachine root"
205204

206205
:: CERTUTIL
207206
set _INSTALL_CERTUTIL=1
208-
set "install_certutils_folder=%~dp0\vst_setup\certificates"
207+
set "install_certutils_folder=%~dp0\vs_enterprise_2017\certificates"
209208
set install_certutils="manifestRootCertificate.cer|manifestCounterSignRootCertificate.cer|vs_installer_opc.RootCertificate.cer"
210209

211210
:: INSTALL SETUP
212211
set _INSTALL_SETUP=1
213-
set install_setup_exe="%~dp0\vst_setup\vs_setup.exe"
214-
set install_setup_arg=--wait --norestart --noWeb --productKey NJVYC-BMHX2-G77MM-4XJMR-6Q8QF
212+
set install_setup_exe="%~dp0\vs_enterprise_2017\vs_setup.exe"
213+
set install_setup_arg=--wait --noWeb --productKey NJVYC-BMHX2-G77MM-4XJMR-6Q8QF
215214

216215
:: INSTALL UPDATE
217216
set _INSTALL_UPDATE=0
@@ -226,7 +225,7 @@ goto :BatchGotAdmin
226225
:: INSTALL HELP
227226
::Microsoft.HelpViewer install
228227
set _INSTALL_HELP=1
229-
set install_help_folder="%~dp0\vst_help"
228+
set install_help_folder="%~dp0\vst_help_2017"
230229
REM set help_default_path="%ProgramData%\Microsoft\HelpLibrary2\Catalogs\VisualStudio15"
231230
set install_help_reg_key="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Help\v2.3\Catalogs\VisualStudio15"
232231
set install_help_reg_key_64="HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Help\v2.3\Catalogs\VisualStudio15"
@@ -245,8 +244,8 @@ goto :BatchGotAdmin
245244

246245
:: DOWNLOAD SETUP
247246
set _DOWNLOAD_SETUP=1
248-
set download_setup_exe="%~dp0\vs_enterprise.exe"
249-
set download_setup_arg=--layout "%~dp0\vst_setup" --wait --norestart --all --lang en-US tr-TR
247+
set download_setup_exe="%~dp0\vs_enterprise_2019.exe"
248+
set download_setup_arg=--layout "%~dp0\vs_enterprise_2019" --wait --all --lang en-US tr-TR
250249
set download_setup_recommended_arg=--includeOptional --includeRecommended
251250
set download_setup_optional_arg=
252251
set download_fix_arg=%download_setup_arg% %download_setup_recommended_arg% %download_setup_optional_arg% --fix
@@ -266,13 +265,13 @@ goto :BatchGotAdmin
266265

267266
:: CERTUTIL
268267
set _INSTALL_CERTUTIL=1
269-
set "install_certutils_folder=%~dp0\vst_setup\certificates"
268+
set "install_certutils_folder=%~dp0\vs_enterprise_2019\certificates"
270269
set install_certutils="manifestRootCertificate.cer|manifestCounterSignRootCertificate.cer|vs_installer_opc.RootCertificate.cer"
271270

272271
:: INSTALL SETUP
273272
set _INSTALL_SETUP=1
274-
set install_setup_exe="%~dp0\vst_setup\vs_setup.exe"
275-
set install_setup_arg=--wait --norestart --noWeb --productKey BF8Y8-GN2QH-T84XB-QVY3B-RC4DF
273+
set install_setup_exe="%~dp0\vs_enterprise_2019\vs_setup.exe"
274+
set install_setup_arg=--wait --noWeb --productKey BF8Y8-GN2QH-T84XB-QVY3B-RC4DF
276275

277276
:: INSTALL UPDATE
278277
set _INSTALL_UPDATE=0
@@ -299,11 +298,80 @@ goto :BatchGotAdmin
299298
set activate_storepid_64="%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\StorePID.exe"
300299

301300
goto :EOF
301+
302+
:version2022
303+
::vs_enterprise__1706402483.1612664202.exe
304+
::--locale tr-TR ::--verify
305+
306+
:: DOWNLOAD SETUP
307+
set _DOWNLOAD_SETUP=1
308+
set download_setup_exe="%~dp0\vs_enterprise_2022.exe"
309+
set download_setup_arg=--layout "%~dp0\vs_enterprise_2022" --wait --all --lang en-US tr-TR
310+
set download_setup_recommended_arg=--includeOptional --includeRecommended
311+
set download_setup_optional_arg=
312+
set download_fix_arg=%download_setup_arg% %download_setup_recommended_arg% %download_setup_optional_arg% --fix
313+
314+
:: DOWNLOAD UPDATE
315+
set _DOWNLOAD_UPDATE=0
316+
set download_update_exe=""
317+
set download_update_arg=
318+
319+
:: CERTIFICATE
320+
set _INSTALL_CERTIFICATE=0
321+
set "install_cert_folder="
322+
set install_cert_exe=""
323+
rem set install_certs=
324+
rem For Visual Studio 2017 version 15.8 Preview 2 or later:
325+
set install_certs=""
326+
327+
:: CERTUTIL
328+
set _INSTALL_CERTUTIL=1
329+
set "install_certutils_folder=%~dp0\vs_enterprise_2022\certificates"
330+
set install_certutils="manifestRootCertificate.cer|manifestCounterSignRootCertificate.cer|vs_installer_opc.RootCertificate.cer"
331+
332+
:: INSTALL SETUP
333+
set _INSTALL_SETUP=1
334+
set install_setup_exe="%~dp0\vs_enterprise_2022\vs_setup.exe"
335+
set install_setup_arg=--wait --noWeb --productKey VHF9H-NXBBB-638P6-6JHCY-88JWH
336+
337+
:: INSTALL UPDATE
338+
set _INSTALL_UPDATE=0
339+
set install_update_exe=
340+
set install_update_arg=
341+
342+
:: INSTALL LANGUAGE
343+
set _INSTALL_LANGUAGE=0
344+
set install_language_setup_exe=""
345+
set install_language_setup_arg=
346+
347+
:: INSTALL HELP
348+
::Microsoft.HelpViewer install
349+
set _INSTALL_HELP=0
350+
set install_help_folder=""
351+
REM set help_default_path=""
352+
set install_help_reg_key=""
353+
set install_help_reg_key_64=""
354+
355+
:: ACTIVATE
356+
set _ACTIVATE=1
357+
set activate_key=VHF9H-NXBBB-638P6-6JHCY-88JWH 09660
358+
set activate_storepid="%ProgramFiles(x86)%\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\StorePID.exe"
359+
set activate_storepid_64="%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\StorePID.exe"
360+
361+
goto :EOF
302362

303363
:--------------------------------------
304364

305365
:start
306-
if %_VERSION% NEQ 2012 if %_VERSION% NEQ 2013 if %_VERSION% NEQ 2015 if %_VERSION% NEQ 2017 if %_VERSION% NEQ 2019 goto :god_exit
366+
cls
367+
368+
set "_VERSION="
369+
set /P "_VERSION=Select Visual Studio Version: "
370+
if /I "%_VERSION%" EQU "0" goto :god_exit
371+
if /I "%_VERSION%" EQU "" goto :start
372+
if /I "%_VERSION%" NEQ "2012" if /I "%_VERSION%" NEQ "2013" if /I "%_VERSION%" NEQ "2015" if /I "%_VERSION%" NEQ "2017" if /I "%_VERSION%" NEQ "2019" if /I "%_VERSION%" NEQ "2022" goto :start
373+
374+
title Visual Studio Tool (%_VERSION%)
307375
call :version%_VERSION%
308376

309377
set "isR=Recommended "
@@ -315,7 +383,7 @@ goto :BatchGotAdmin
315383

316384
:BatchGotAdmin
317385
set "FOLDER=%~dp0"
318-
echo "" > "%FOLDER%\getadmin.vbs" && (
386+
echo "" > "%FOLDER%\vs_installer.vbs" && (
319387
set "FOLDER=%~dp0"
320388
) || (
321389
set "FOLDER=%temp%"
@@ -328,17 +396,17 @@ goto :BatchGotAdmin
328396
goto :gotAdmin
329397
)
330398
:UACPrompt
331-
echo Set UAC = CreateObject^("Shell.Application"^) > "%FOLDER%\getadmin.vbs"
332-
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%FOLDER%\getadmin.vbs"
333-
"%FOLDER%\getadmin.vbs"
399+
echo Set UAC = CreateObject^("Shell.Application"^) > "%FOLDER%\vs_installer.vbs"
400+
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%FOLDER%\vs_installer.vbs"
401+
"%FOLDER%\vs_installer.vbs"
334402
goto :god_exit
335403
:gotAdmin
336-
if exist "%FOLDER%\getadmin.vbs" del "%FOLDER%\getadmin.vbs"
404+
if exist "%FOLDER%\vs_installer.vbs" del "%FOLDER%\vs_installer.vbs"
337405
pushd "%CD%"
338406
CD /D "%~dp0"
339407
:: -------------- set global variable --------------
340408
setlocal EnableDelayedExpansion
341-
title Visual Studio Tool (%_VERSION%)
409+
title Visual Studio Tool
342410
mode con: cols=60 lines=15
343411

344412
set /A _menuCount=0
@@ -389,6 +457,7 @@ goto :BatchGotAdmin
389457
set "c="
390458
set /P "c=Select: "
391459
if /I "%c%" EQU "0" goto :god_exit
460+
if /I "%c%" EQU "" goto :main_menu
392461
if defined _menu1 if /I "%c%" EQU "%_menu1%" goto :download_recommended
393462
if defined _menu2 if /I "%c%" EQU "%_menu2%" goto :download_optional
394463
if defined _menu3 if /I "%c%" EQU "%_menu3%" goto :download_fix
@@ -535,4 +604,4 @@ goto :BatchGotAdmin
535604
goto :back_menu
536605

537606
:god_exit
538-
exit /B
607+
exit /B

0 commit comments

Comments
 (0)