Community Forums
Results 1 to 2 of 2

Thread: Redistributables Install Conditions

  1. #1
    Join Date
    Jan 2018
    Posts
    1

    Question Redistributables Install Conditions

    I include Microsoft Visual C++ 2012 Update 4 Redistributable and Microsoft Visual C++ 2010 SP1 Redistributable in my install package. I am looking for some guidance on what conditions to use to make sure that they install when they need to install. I am currently using the existence of the following registry keys.

    Microsoft Visual C++ 2012 Update 4 Redistributable will install if this key does not exist.
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2F73A7B2-E50E-39A6-9ABC-EF89E4C62E36}

    Microsoft Visual C++ 2010 SP1 Redistributable will install if this key does not exist.

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}

    I am under the assumption that these keys are unique to the redistributables and should only be there if they have been installed. I would like to know if this method is reasonable or if there are better ways to ensure they get installed when needed. Any insight or advice will be much appreciated. Cheers.

  2. #2
    Join Date
    Jun 2017
    Posts
    51

    Redistributables Install Conditions

    Quote Originally Posted by installmaker View Post
    I include Microsoft Visual C++ 2012 Update 4 Redistributable and Microsoft Visual C++ 2010 SP1 Redistributable in my install package. I am looking for some guidance on what conditions to use to make sure that they install when they need to install. I am currently using the existence of the following registry keys.

    Microsoft Visual C++ 2012 Update 4 Redistributable will install if this key does not exist.
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2F73A7B2-E50E-39A6-9ABC-EF89E4C62E36}

    Microsoft Visual C++ 2010 SP1 Redistributable will install if this key does not exist.

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}

    I am under the assumption that these keys are unique to the redistributables and should only be there if they have been installed. I would like to know if this method is reasonable or if there are better ways to ensure they get installed when needed. Any insight or advice will be much appreciated. Cheers.
    Hi installmaker,

    You are correct,redistributables maintain unique registry key under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall.Since it is product code based keys you can trust those enough


    Thanks,
    Jenifer

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •