Skip to content

Instantly share code, notes, and snippets.

@nathan130200
Created July 13, 2019 12:09
Show Gist options
  • Save nathan130200/efb750324383bc3ccc2479a30f5505f5 to your computer and use it in GitHub Desktop.
Save nathan130200/efb750324383bc3ccc2479a30f5505f5 to your computer and use it in GitHub Desktop.
Install all VSIX in current directory using windows batch file.
@echo off
set app="C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe"
for /r %%f in (*.vsix) do (
call :setup "%%f"
)
goto end
:setup
echo.
call :print install package %1
%app% %1 /q
if %errorlevel% neq 0 (
call :print setup failed!
) else (
call :print setup done!
)
goto:eof
:end
call :print setup finished!
pause
:print
echo [%date% %time%]: %*
echo [%date% %time%]: %*>>output_log.txt
goto:eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment