Le réseau pour les développeurs > Forums - Accueil > Visual C++ General > How to run vcredist_x86 (of MSVC 2005 SP1) from a deployment project in MSVC 2008
Poser une questionPoser une question
 

TraitéeHow to run vcredist_x86 (of MSVC 2005 SP1) from a deployment project in MSVC 2008

  • mercredi 4 novembre 2009 11:46itamarat Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     
    Hi,

    I have an application which is developed in MSVC 2008 SP1. The project uses some DLLs that was developed on MSVC 2005 SP1, and therefore need the vcredist_x86.exe of MSVC 2005 SP1 to be installed. I also have a deployment project in MSVC 2008 that creates a simple and nice installer for the application. To make the application work on a target PC, I need to install the application itself, and the MSBC 2005 SP1 redist package.

    I have tried several ways to bind the installation of the MSVC 2005 SP1 redist package with the application installation, and none of them succeeded:
    1. Defining "Visual Studio Runtime Libraries (x86)" as a prerequist in the deployment project - The deployment project chose the MSVC 2008 SP1 as the redist package, instead of MSVC 2005 SP1.
    2. Run vcredist_x86.exe (of MSVC 2005 SP1) as a "Custom Action" during "Install" or "Commit" phases - When installing the application, the installer program (Windows nstaller 3.1) could not run the vcredist_x86.exe file because it is a Windows Installer 3.1 file too, and it can't run a Windows Installer instance from antoher Windows Installer.
    3. I did managed though to add the MSVC 2005 SP1 redist package to the preprequities list, but, this solution limits a future development of the project on another machine because to add the MSVC 2005 SP1 to the list needed to be done localy (add some files to a directory on C:\Program Files\....\BootStarapper\Packages\...).
    I'm trying not to bother the user to much, and to ask him only to run setup.exe to install my application. I need to find a way to install the MSVC 2005 SP1 redist package by the deployment project. I hope some one could assist me with that :)


    Thanks in advance for your answers :)

    Itamar

Réponses

Toutes les réponses