I would like to check if vcredist_x86 has already been installed on the user's machine before installing it.

asked 07 Sep '12, 11:16

Ahmed%20Siddiqui's gravatar image

Ahmed Siddiqui
1111
accept rate: 0%


The registryTest rule can be used to check for specific keys such as:

<preInstallationActionList> <actionGroup> <explanation>VCredist deployment</explanation> <!-- actual actions --> <ruleList> <registryTest> <key>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7299052B-02A4-4627-81F2-1818DA5D550D}</key> <logic>exists</logic> <name>Value</name> </registryTest> </ruleList> </actionGroup> </preInstallationActionList>

More details on registry keys to check can be found here:

http://blogs.msdn.com/b/astebner/archive/2007/01/16/mailbag-how-to-detect-the-presence-of-the-vc-8-0-runtime-redistributable-package.aspx

http://blogs.msdn.com/b/astebner/archive/2007/01/24/updated-vc-8-0-runtime-redistributable-packages-are-included-in-visual-studio-2005-sp1.aspx

http://blogs.msdn.com/b/heaths/archive/2009/05/29/detecting-visual-studio-2008-service-pack-1.aspx

link

answered 07 Sep '12, 11:24

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×7

Asked: 07 Sep '12, 11:16

Seen: 15,841 times

Last updated: 07 Sep '12, 11:24