2016-07-25 20 views
0

忍受着我,我只是想學習WiX。我很好奇如何從這個彈出菜單中刪除以下網絡安裝選項(用紅色圈起來)?使用WiX時如何從MSI中刪除「將從網絡運行」安裝選項?

enter image description here

編輯:如下要求,這裏的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> 

回答

1

你應該表現出你的WiX的來源正在使用的特徵元素。這很可能是InstallDefault設置(您可能想要成爲「本地」)和AllowAdvertise(並將其設置爲「no」)的組合。

+0

謝謝。我更新了我的答案。有什麼我需要在那裏調整? – c00000fd

+0

我在那裏看不到InstallDefault。 – PhilDW

+0

我爲''設置了'InstallDefault =「local」',它什麼也沒做。 – c00000fd

相關問題