Silverlight Installation Switches. This setting is automatically included when the quiet install switch is used. By default, DRM Playback is set to prompt on 1st use. /ignorewarnings = non-fatal warnings will not be reflected in the quiet installer return code but will instead return zero indicating success.
Programming, graphics, games, media, C++, Windows, Internet and more..
Blog »
# Installing Visual C++ Redistributable Package from Command Line
Wed
20 May2015
You may think that unless you explicitly use some external library (like FMOD), your program will not require any additional libraries to work, but when coding in C++ using Visual Studio, this is not the case. The functions of standard C/C++ library are implemented in a package of DLL-s called Microsoft Visual C++ Redistributable Package. Each version of Visual Studio has their own set. For example, version for Visual Studio 2013 (Release configuration) consists of files: msvcr120.dll, msvcp120.dll.
You can make your application not requiring this library by setting your project options in Configuration Properties > C/C++ > Code Generation > Runtime Library to 'Multi-threaded [Debug]' without the 'DLL' part, which makes it statically linked. Alternatively, you can distribute these DLL files (although I'm not sure if this is legal) or the whole library installer together with your application. The library is small and free, available to download from Microsoft website:
The question is: can you launch the installer of these packages with some special parameter so the user doesn't have to go through all the setup wizard, confirming each step? The answer is yes, but as Microsoft likes to change everything very often :) the exact command line is different depending on version. Here is the whole set:
Visual Studio 2005 (original one):
Installshield Silent Install
Visual Studio 2005, x86 (32-bit version):
vcredist_x86.exe /q:a /c:'VCREDI~1.EXE /q:a /c:'msiexec /i vcredist.msi /qn' Visual Studio 2005, x64 (64-bit version): vcredist_x64.exe /q:a /c:'VCREDI~2.EXE /q:a /c:'msiexec /i vcredist.msi /qn' ' Visual Studio 2005 SP1, x86: vcredist_x86.exe /q:a /c:'VCREDI~3.EXE /q:a /c:'msiexec /i vcredist.msi /qn' ' Visual Studio 2005 SP1, x64: vcredist_x64.exe /q:a /c:'VCREDI~2.EXE /q:a /c:'msiexec /i vcredist.msi /qn' '
If you would like to install it in unattended mode (which will show a small progress bar but not require any user interaction), you can change the '/qn' switch above to '/qb'. Unattended mode + disabled 'Cancel' button is '/qb!'.
Visual Studio 2005 (updated - the one I use):
![]() /Q - quiet mode
Visual Studio 2008: Just pass one of these parameters:
/q - quiet mode, no user interface./qb - unattended mode, shows progress bar but no user interaction required./qb! - unattended mode with 'Cancel' button disabled.
Visual Studio 2010 and 2012:
/q /norestart - quiet mode/passive /norestart - passive (unattended) mode
Visual Studio 2013, 2015, 2017:
Silent Install Switches/install /quiet /norestart - quiet mode/install /passive /norestart - passive (unattended) mode
To quickly install all of these libraries on the machines where lots of different applications are launched that may require them, I gathered all the libraries in one directory and I have written following BAT script:
Update: I also prepared a full package with my script and 'pirated' copy of all these installers for your convenience: Microsoft Visual C++ Redistributable Package.zip (105 MB).
Comments | #visual studio#c++Share
Please enable JavaScript to view the comments powered by Disqus.
Copyright © 2004-2019 Sorry, you need Javascript on to email me.
-->
The following command-line options are available for Windows Setup. Beginning with Windows 10, version 1607, you can use a setupconfig file as an alternative to passing paramters to Windows Setup on a command line. For more information, see Windows Setup Automation Overview.
setup.exe
The following table lists Setup command-line options:
Setup.exe exit codes
Exe Install Switches
Microsoft Silent Install Switches For Windows
Related topics
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |