【问题标题】:Installshield LE update 2012 -> 2013 - Installing VC++ redistributable no longer workingInstallshield LE update 2012 -> 2013 - 安装 VC++ redistributable 不再工作
【发布时间】:2014-02-10 09:27:27
【问题描述】:

自从我将 installshield 版本从 2012 年春季更新到 2013 年以来,如果需要,我的安装程序不再安装 Visual C++ 可再发行包。 我的应用程序针对 x86 平台,这就是为什么我需要在用户的 PC 上安装 vc_redistx86。它适用于 x64 和 x86 PC。

因为我现在使用的是 Visual Studio 2012 更新 4,所以我创建了自己的 .prq:

<?xml version="1.0" encoding="UTF-8"?>
<SetupPrereq>
    <conditions>
        <condition Type="1" Comparison="2" Path="HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{33d1fd90-4274-48a1-9bc1-97e33d9c2d6f}" FileName="" ReturnValue=""></condition>
    </conditions>
    <operatingsystemconditions>
        <operatingsystemcondition MajorVersion="6" MinorVersion="0" PlatformId="2" CSDVersion="" ServicePackMajorMin="2"></operatingsystemcondition>
        <operatingsystemcondition MajorVersion="6" MinorVersion="1" PlatformId="2" CSDVersion="" Bits="1" ServicePackMajorMin="1"></operatingsystemcondition>
        <operatingsystemcondition MajorVersion="6" MinorVersion="2" PlatformId="2" CSDVersion=""></operatingsystemcondition>
    </operatingsystemconditions>
    <files>
        <file LocalFile="&lt;ISProductFolder&gt;\SetupPrerequisites\VC 2012 Redist\x86\vcredist_up4_x86.exe" URL="http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" CheckSum="7F52A19ECAF7DB3C163DD164BE3E592E" FileSize="0,6554576"></file>
    </files>
    <execute file="vcredist_up4_x86.exe" cmdline="/q" cmdlinesilent="/q" returncodetoreboot="1641,3010"></execute>
    <properties Id="" Description="This prerequisite installs the Microsoft Visual C++ 2012 Runtime Libraries (x86)." AltPrqURL=""></properties>
    <behavior Reboot="2"></behavior>
</SetupPrereq>

当然,我已经为VS2012 update 4下载了vc_redist_x86,并放在了\SetupPrerequisites\VC 2012 Redist\x86\vcredist_up4_x86.exe

对吗?

【问题讨论】:

    标签: visual-c++ visual-studio-2012 installshield redistributable


    【解决方案1】:

    您必须确保您的 .prq 文件嵌入了正确的操作系统条件,以便在每台目标机器上正确安装。

    根据这个MSDN Page - Windows versions,您会发现缺少什么以及需要添加哪些行。

    例如这里只要求 windows 7 和 8 x86 版本,如果你想在 x64 上部署你就缺少这种 xml 条件:

    -- 操作系统条件 MajorVersion="6" MinorVersion="0" PlatformId="2" CSDVersion="" Bits="4" ServicePackMajorMin="2"> 操作系统条件

    干杯:)

    【讨论】:

    • InstallShield Limited Edition 不包括 prereq 编辑器。要么他是手动执行此操作(没有模式的帮助),要么他在 VM 上使用专业版的 Eval 副本。我对此没有任何反对意见,但在告诉某人修复他们的 PRQ 时请记住。 :)
    • 完全同意,这只是限制版的绕过。先决条件。编辑器会更简单,更适合专业版
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-25
    • 2017-10-27
    • 1970-01-01
    相关资源
    最近更新 更多