在 Bundle 中设置 InstallPrivileges = "elevated"。引导程序 Wix

Where in Bundle set InstallPrivileges = "elevated". Bootstrapper Wix

我发现要为 Wix 安装程序设置管理权限,您必须设置:

<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" InstallPrivileges="elevated"/>

<Product/> 中。但是 where/how 为 Bundle 设置了那个,因为我无法创建 <Package/> ?

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Bundle Name="Bootstrapper13" Version="1.0.0.0" Manufacturer="" UpgradeCode="86064926-b150-448f-aba9-fb0c8f4a83b5">
    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />

    <Chain>
        <!-- TODO: Define the list of chained packages. -->
        <!-- <MsiPackage SourceFile="path\to\your.msi" /> -->
    </Chain>
</Bundle>

当您有 perMachine 包时,Burn 会自动检测;你不必告诉它。