InstallShield-安装必备组件后不要重新启动

时间:2019-06-19 05:01:28

标签: installshield

我在InstallShield项目中添加了一些先决条件,并且每次安装先决条件后都会提示重新启动。

我如何抑制这种行为?

例如Microsoft .NET Framework 4.7.1 Full.prq文件如下:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SetupPrereq>
    <conditions>
        <condition Type="2" Comparison="2" Path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" FileName="Release" ReturnValue="461308"/>
    </conditions>
    <operatingsystemconditions>
        <operatingsystemcondition MajorVersion="6" MinorVersion="1" PlatformId="2" CSDVersion="" ServicePackMajorMin="1"/>
        <operatingsystemcondition MajorVersion="6" MinorVersion="3" PlatformId="2" CSDVersion=""/>
        <operatingsystemcondition MajorVersion="10" MinorVersion="0" PlatformId="2" CSDVersion="" ProductType="2|3"/>
        <operatingsystemcondition MajorVersion="10" MinorVersion="0" PlatformId="2" CSDVersion=""/>
        <operatingsystemcondition MajorVersion="6" MinorVersion="2" PlatformId="2" CSDVersion="" ProductType="2|3"/>
    </operatingsystemconditions>
    <files>
        <file LocalFile="&lt;ISProductFolder&gt;\SetupPrerequisites\Microsoft .net\4.7.1\Full\NDP471-KB4033342-x86-x64-AllOS-ENU.exe" URL="https://download.microsoft.com/download/9/E/6/9E63300C-0941-4B45-A0EC-0008F96DD480/NDP471-KB4033342-x86-x64-AllOS-ENU.exe" FileSize="0,0"/>
    </files>
    <execute file="NDP471-KB4033342-x86-x64-AllOS-ENU.exe" cmdline="/q /norestart" cmdlinesilent="/q /norestart" returncodetoreboot="1641,3010"/>
    <properties Id="{BEA8FDF6-112A-46CC-B949-3FD3A57C6488}" Description="This prerequisite installs the .NET Framework 4.7.1 Full standalone package." AltPrqURL="http://saturn.installshield.com/is/prerequisites/Microsoft .NET Framework 4.7.1 Full.prq"/>
    <behavior Reboot="2"/>
</SetupPrereq>

我想它与<behavior Reboot="2"/>有关,但是找不到任何有关它的信息。

0 个答案:

没有答案