[英]How to remove “Will be installed to run from network” installation options from MSI when using WiX?
Bear with me, I'm just trying to learn WiX . 忍受我,我只是想学习WiX 。 I'm curious how to remove the following network installation options from this popup menu (circled in red)? 我很好奇如何从此弹出菜单(红色圆圈)中删除以下网络安装选项?
EDIT: As requested below, here's the Feature
node: 编辑:按照下面的要求,这是Feature
节点:
<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>
You should show your WiX source being used for the Feature elements. 您应该显示用于Feature元素的WiX源。 It's most likely a combination of the InstallDefault setting (which you probably want to be "local") and AllowAdvertise (and set it to "no"). 它很可能是InstallDefault设置(您可能希望为“本地”)和AllowAdvertise(并将其设置为“ no”)的组合。
For features that do not directly contain ComponentRef
or ComponentGroupRef
, you just create a dummy component inside that feature with a Location="local"
attribute. 对于不直接包含ComponentRef
或ComponentGroupRef
,您只需在该功能内创建一个具有Location="local"
属性的虚拟组件。 This will get rid of the "run from network" options. 这将摆脱“从网络运行”选项。 Example: 例:
<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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.