Difference between revisions of "Visual Cpp Redistributable"
From WPKG | Open Source Software Deployment and Distribution
m (Changed ordering of sections) |
m (→Microsoft Visual C++ 2008 SP1 Redistributable: %SOFTWARE% is the package directory, so no need for another 'package' directory under that) |
||
Line 18: | Line 18: | ||
<check type="registry" condition="exists" path="HKLM\Software\Microsoft\DevDiv\VC\Servicing\9.0\RED\1033\Install" /> | <check type="registry" condition="exists" path="HKLM\Software\Microsoft\DevDiv\VC\Servicing\9.0\RED\1033\Install" /> | ||
</check> | </check> | ||
− | <install cmd='%SOFTWARE% | + | <install cmd='%SOFTWARE%\vcruntime\vcredist_2008SP1_x86.exe /q' > |
<exit code="3010" reboot="false" /> | <exit code="3010" reboot="false" /> | ||
</install> | </install> | ||
Line 41: | Line 41: | ||
There seem to be different versions of vcredist_x86.exe, perhaps language dependent, so there are different MSI removal strings. | There seem to be different versions of vcredist_x86.exe, perhaps language dependent, so there are different MSI removal strings. | ||
− | |||
− | |||
=Microsoft Visual C++ 2005 Redistributable= | =Microsoft Visual C++ 2005 Redistributable= |
Revision as of 06:36, 23 August 2011
Microsoft Visual C++ Redistributables. These are required so that the executables of some programs will run, because they were compiled by their author using Microsoft Visual Studio (and a particular version of Visual Studio at that) and require Visual Studio's 'runtime' for C++ in order to run. Usually such runtimes are bundled with the software that requires them, but not always.
Microsoft Visual C++ 2008 SP1 Redistributable
The installer can be downloaded from Microsoft
<package id="pkgvcruntime2008"
name="Visual C++ 2008 Runtime SP1"
revision="3"
reboot="false"
priority="10">
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729"/>
<check type="uninstall" condition="exists" path="Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.17"/>
<check type="registry" condition="exists" path="HKLM\Software\Microsoft\DevDiv\VC\Servicing\9.0\RED\1031\Install" />
<check type="registry" condition="exists" path="HKLM\Software\Microsoft\DevDiv\VC\Servicing\9.0\RED\1033\Install" />
</check>
<install cmd='%SOFTWARE%\vcruntime\vcredist_2008SP1_x86.exe /q' >
<exit code="3010" reboot="false" />
</install>
<remove cmd="msiexec /qn /l* c:\netinst\logs\vcruntime2008.log /x{09298F26-A95C-31E2-9D95-2C60F586F075}" >
<exit code="1605" />
</remove>
<remove cmd="msiexec /qn /l* c:\netinst\logs\vcruntime2008.log /x{6AFCA4E1-9B78-3640-8F72-A7BF33448200}" >
<exit code="1605" />
</remove>
<remove cmd="msiexec /qn /l* c:\netinst\logs\vcruntime2008.log /x{9A25302D-30C0-39D9-BD6F-21E6EC160475}" >
<exit code="1605" />
</remove>
</package>
If you want the installation to be even more silent you can use:
vcredist_2008SP1_x86.exe /q:a /c:"VCREDI~3.EXE /q:a /c:""msiexec /i vcredist.msi /qb!"" "
There seem to be different versions of vcredist_x86.exe, perhaps language dependent, so there are different MSI removal strings.
Microsoft Visual C++ 2005 Redistributable
The installer can be downloaded from Microsoft
<package id="vc2005-redist" name="Visual C++ 2005 Redistributable" revision="2" reboot="false" priority="10">
<check type="uninstall" condition="exists" path="Microsoft Visual C++ 2005 Redistributable" />
<install cmd='"%SOFTWARE%\vc2005-redist\vcredist_x86.exe" /q:a'/>
<upgrade cmd='"%SOFTWARE%\vc2005-redist\vcredist_x86.exe" /q:a'/>
<remove cmd='MsiExec.exe /q /x{7299052b-02a4-4627-81f2-1818da5d550d}' />
</package>