如何删除“;将安装为从网络运行;使用WiX时MSI的安装选项?

如何删除“;将安装为从网络运行;使用WiX时MSI的安装选项?,wix,windows-installer,Wix,Windows Installer,请容忍我,我只是想学。我很好奇如何从弹出菜单中删除以下网络安装选项(红色圆圈) 编辑:根据以下要求,这里是功能节点: <Feature Id='Complete' Title='Product title' Description='The complete package.' Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' Absent='disallow' AllowAdvertise='no' >

请容忍我,我只是想学。我很好奇如何从弹出菜单中删除以下网络安装选项(红色圆圈)

编辑:根据以下要求,这里是
功能节点:

<Feature Id='Complete' Title='Product title' Description='The complete package.'
  Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' Absent='disallow' AllowAdvertise='no' >

  <Feature Id='MainProgram' Title='Program files'
           Description='Installs the main executable files for the software.'
           Absent='disallow'
           AllowAdvertise='no'
           Level='1'>
    <ComponentRef Id='CompIDFile1EXE' />
    <ComponentRef Id='CompIDFile2EXE' />
    <ComponentRef Id='CompIDFile3EXE' />
    <ComponentRef Id='CompIDFile1DLL' />
    <ComponentRef Id='CompIDFile2DLL' />

    <ComponentRef Id='CompIDMainRegistry' />
    <ComponentRef Id='ProgramMenuDir' />
  </Feature>

  <Feature Id='ShortcutsStart' Title='Start Menu Shortcuts'
           AllowAdvertise='no'
           Description="Places software shortcuts into the Windows Start Menu."
           Level='1'>
    <ComponentRef Id='CompIDShortcutsStart' />
  </Feature>

  <Feature Id='ShortcutsDesktop' Title='Desktop Shortcut'
           AllowAdvertise='no'
           Description="Places software shortcut onto the users' desktops."
           Level='1000'>
    <ComponentRef Id='CompIDShortcutsDesktop' />
  </Feature>

</Feature>


您应该显示用于功能元素的WiX源。它很可能是InstallDefault设置(您可能希望是“本地”)和AllowAvertise(并将其设置为“否”)的组合

对于不直接包含
ComponentRef
ComponentGroupRef
的功能部件,您只需在该功能部件内使用
Location=“local”
属性创建一个虚拟组件即可。这将消除“从网络运行”选项。 例如:



谢谢。我更新了我的答案。有什么我需要调整的吗?我在那里看不到InstallDefault。我为
设置了
InstallDefault=“local”
,但它什么也没做。添加这个旧的经典表单MVP Stefan Kruger:-我猜你使用了一个未压缩的设置图像?@SteinÅsmul:你知道我三年多前问过这个问题了……是的,我昨天看到了帖子的变化,我希望人们能找到这个链接,如果他们有同样的问题。
<Feature Id='Complete' Title='Product title' Description='The complete package.'  Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' Absent='disallow' AllowAdvertise='no' >
   <!-- Dummy component to get rid of the "run from network" option  -->
   <Component Id="CompleteDummyComponent" Location="local" Directory="TARGETDIR" Guid="GUID_HERE_PLEASE" />

<!-- sub features here -->
</Feature>