Adding prerequisites. Visual C ++ Redistributable Runtime

I had a problem while installing visual C ++ runtime libraries for Windows 7. I am preparing to install using installshield 2010, it is possible to install visual C ++ 2010 as prerequisites, but not an option for VC ++ 2008.

How can I create (or someone already created) a .prq file so that I can create my application.

Please help me as soon as possible.

+3
source share
3 answers

You can use the prq VC ++ 2010 file and simply edit it. Download VC ++ 2008 and place it in the appropriate folder. Update the prq file by updating the condition as well as the source for the executable.

0

, AltPrqURL .prg ( c:\Program Files (x86)\InstallShield\2012SpringLE\SetupPrerequisites) . :.

< operatingsystemcondition MajorVersion = "6" MinorVersion = "0" PlatformId = "2" CSDVersion = " =" 1 "ProductType =" 2 | 3" </operatingsystemcondition> < operatingsystemcondition MajorVersion = "6" MinorVersion = "2" PlatformId = "2" CSDVersion = " "Bits =" 1" > </operating system condition >

< operatingsystemcondition MajorVersion = "6" MinorVersion = "0" PlatformId = "2" CSDVersion = " "Bits =" 4 "ProductType =" 2 | 3" </operatingsystemcondition> < operatingsystemcondition MajorVersion = "6" MinorVersion = "2" PlatformId = "2" CSDVersion = " =" 4" > </operatingsystemcondition>

Visual ++ 2010 (x64) InstallShield 2012 LE: http://saturn.installshield.com/is/prerequisites/microsoft visual ++ 2010 (x64).prq

: Visual Studio 2012 + InstallShield 2012 LE x64 . : .

+6

I had the same problem and I found the .prq file on the Internet for VC ++ 2008. This is the contents of the file:

<?xml version="1.0" encoding="UTF-8"?>
<SetupPrereq>
    <conditions>
        <condition Type="1" Comparison="2" Path="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\D20352A90C039D93DBF6126ECE614057" FileName="" ReturnValue=""/>
    </conditions>
<operatingsystemconditions>
    <operatingsystemcondition MajorVersion="5" MinorVersion="0" PlatformId="2" CSDVersion="" ServicePackMajorMin="4"/>
    <operatingsystemcondition MajorVersion="6" MinorVersion="1" PlatformId="2" CSDVersion="" Bits="1" ProductType="1"/>
    <operatingsystemcondition MajorVersion="6" MinorVersion="0" PlatformId="2" CSDVersion="" Bits="1"/>
    <operatingsystemcondition MajorVersion="5" MinorVersion="2" PlatformId="2" CSDVersion="" Bits="1" ProductType="2|3"/>
    <operatingsystemcondition MajorVersion="5" MinorVersion="1" PlatformId="2" CSDVersion="" Bits="1" ProductType="1"/>
    </operatingsystemconditions>
<files>
    <file LocalFile="&lt;ISProductFolder&gt;\SetupPrerequisites\VC 2008 SP1 Redist\vcredist_x86.exe" URL="http://download.microsoft.com/download/d/d/9/dd9a82d0-52ef-40db-8dab-795376989c03/vcredist_x86.exe" CheckSum="5689D43C3B201DD3810FA3BBA4A6476A" FileSize="0,4216840"/>
</files>
    <execute file="vcredist_x86.exe" cmdline="/q" cmdlinesilent="/q" returncodetoreboot="3010,8192,1641,1046" requiresmsiengine="1"/>
<properties Id="{0BE9572E-8558-404f-B0A5-8C347D145655}" Description="This prerequisite installs the Microsoft Visual C++ 2008 SP1 Redistributable Package for x86-based systems." AltPrqURL="http://saturn.installshield.com/is/prerequisites/microsoft visual c++ 2008 sp1 redistributable package (x86).prq"/>
    <behavior Reboot="2"/>
</SetupPrereq>

This file must be saved C:\XXX\InstallShield\YYYY\SetupPrerequisites\as Microsoft Visual C++ 2008 SP1 Redistributable Package (x86).prq. Reboot your IS, it should appear in the options for distribution. You can also use the InstallShield Prerequisite Editor to change some settings or create a new one.

0
source

Source: https://habr.com/ru/post/1757143/


All Articles