Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Visual Studio - CMD Auto-Multi-Install

VCRedist CMD

Best Answer SleepyDude , 12 November 2020 - 06:07 AM

Hi, Add this line where you want to pause for 5 secondstimeout /T 5The default options is to wait the specified time or to accept any key to continue if you want to force the wait time use:tim... Go to the full post »


  • Please log in to reply

#1
Friedrich Schnellinger

Friedrich Schnellinger

    Member

  • Member
  • PipPip
  • 38 posts

I have this handy CMD that auto-installs the Visual Studio runtimes. It works ok, but I would like it to wait like 5 seconds between every installer. (NOT asking me to press a key, just wait 5 seconds after every install, then start the next package)

 

How can I do that?

 

Here's the code:

@echo off
color F1
title Microsoft Visual C 2005-2019 32-bit
goto start
:START
echo.
echo Installing Visual C 2005
echo ================== Dr. Schnellinger ==
echo.
echo Step 1 of 8
2005.exe /Q
cls
echo.
echo Installing Visual C 2008
echo ================== Dr. Schnellinger ==
echo.
echo Step 2 of 8
2008.exe /qb
cls
echo.
echo Installing Visual C 2010
echo ================== Dr. Schnellinger ==
echo.
echo Step 3 of 8
2010.exe /passive /norestart
cls
echo.
echo Installing Visual C 2012
echo ================== Dr. Schnellinger ==
echo.
echo Step 4 of 8
2012.exe /passive /norestart
cls
echo.
echo Installing Visual C 2013
echo ================== Dr. Schnellinger ==
echo.
echo Step 5 of 8
2013.exe /install /passive /norestart
cls
echo.
echo Installing Visual C 2015
echo ================== Dr. Schnellinger ==
echo.
echo Step 6 of 8
2015.exe /install /passive /norestart
cls
echo.
echo Installing Visual C 2017
echo ================== Dr. Schnellinger ==
echo.
echo Step 7 of 8
2017.exe /install /passive /norestart
cls
echo.
echo Installing Visual C 2019
echo ================== Dr. Schnellinger ==
echo.
echo Step 8 of 8
2019.exe /install /passive /norestart

  • 0

Advertisements


#2
SleepyDude

SleepyDude

    Trusted Helper

  • Malware Removal
  • 4,981 posts
✓  Best Answer

Hi,

 

Add this line where you want to pause for 5 seconds

timeout /T 5

The default options is to wait the specified time or to accept any key to continue if you want to force the wait time use:

timeout /T 5 /NOBREAK

  • 0

#3
Friedrich Schnellinger

Friedrich Schnellinger

    Member

  • Topic Starter
  • Member
  • PipPip
  • 38 posts

Nice. Thank you. Here's the code for anyone interested:

(You need to rename the installers to 2005.exe, 2008.exe and so on)

@echo off
color F1
title Microsoft Visual C 2005-2019 32-bit
goto start
:START
echo.
echo Installing Visual C 2005
echo ================== Dr. Schnellinger ==
echo.
echo Step 1 of 8
2005.exe /Q
timeout /T 5 /NOBREAK
cls
echo.
echo Installing Visual C 2008
echo ================== SleepyDude ==
echo.
echo Step 2 of 8
2008.exe /qb
timeout /T 5 /NOBREAK
cls
echo.
echo Installing Visual C 2010
echo ================== Dr. Schnellinger ==
echo.
echo Step 3 of 8
2010.exe /passive /norestart
timeout /T 5 /NOBREAK
cls
echo.
echo Installing Visual C 2012
echo ================== SleepyDude ==
echo.
echo Step 4 of 8
2012.exe /passive /norestart
timeout /T 5 /NOBREAK
cls
echo.
echo Installing Visual C 2013
echo ================== Dr. Schnellinger ==
echo.
echo Step 5 of 8
2013.exe /install /passive /norestart
timeout /T 5 /NOBREAK
cls
echo.
echo Installing Visual C 2015
echo ================== SleepyDude ==
echo.
echo Step 6 of 8
2015.exe /install /passive /norestart
timeout /T 5 /NOBREAK
cls
echo.
echo Installing Visual C 2017
echo ================== Dr. Schnellinger ==
echo.
echo Step 7 of 8
2017.exe /install /passive /norestart
timeout /T 5 /NOBREAK
cls
echo.
echo Installing Visual C 2019
echo ================== SleepyDude ==
echo.
echo Step 8 of 8
2019.exe /install /passive /norestart
timeout /T 5 /NOBREAK

  • 1






Similar Topics


Also tagged with one or more of these keywords: VCRedist, CMD

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP