添加先决条件Visual C ++运行时可再发行组件

时间:2010-07-29 13:17:11

标签: installshield-2010

在为Windows 7安装visual c ++运行时库时遇到问题。 我使用installshield 2010准备设置,它们是将visual c ++ 2010设置为先决条件但没有VC ++ 2008选项的选项。

我如何创建(或已创建任何人).prq文件,以便我可以构建我的应用程序。

请尽快帮助我。

3 个答案:

答案 0 :(得分:7)

您可以使用其中一个已安装的 .prg 文件中 AltPrqURL 属性的链接下载必备文件(默认位置 c:\ Program Files(x86)\ InstallShield \ 2012SpringLE \ SetupPrerequisites )并根据您的需要更改此链接。 e.g:

  

< operatingsystemcondition MajorVersion =“6”MinorVersion =“0”PlatformId =“2”CSDVersion =“”Bits =“1”ProductType =“2 | 3”>< / operatingsystemcondition>
  < operatingsystemcondition MajorVersion =“6”MinorVersion =“2”PlatformId =“2”CSDVersion =“”Bits =“1”>< / operatingsystemcondition>

  

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

InstallShield 2012 LE中也缺少 Visual C ++ 2010 Redistributable Package(x64)http://saturn.installshield.com/is/prerequisites/microsoft visual c++ 2010 redistributable package (x64).prq

重要说明:我的Visual Studio 2012 + InstallShield 2012 LE没有列出新的x64可再发行组件及其默认名称。解决方案:只需更改 文件名

答案 1 :(得分:0)

您可以使用VC ++ 2010 prq文件并进行编辑。下载VC ++ 2008并将其放在适当的文件夹中。通过更新条件以及可执行文件的源来更新prq文件。

答案 2 :(得分:0)

我遇到了同样的问题,我在Internet上找到了VC ++ 2008的.prq文件。这是文件的内容:

<?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>

此文件应作为C:\XXX\InstallShield\YYYY\SetupPrerequisites\保存到Microsoft Visual C++ 2008 SP1 Redistributable Package (x86).prq。重新启动您的IS,它应该出现在redistributable选项中。您还可以使用InstallShield Prerequisite Editor更改某些选项或创建新选项。