Reputation: 22327
Bear with me, I'm just trying to learn 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 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>
Upvotes: 1
Views: 685
Reputation: 11
For features that do not directly contain ComponentRef
or ComponentGroupRef
, you just create a dummy component inside that feature with a Location="local"
attribute. 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>
Upvotes: 1
Reputation: 20790
You should show your WiX source being used for the Feature elements. It's most likely a combination of the InstallDefault setting (which you probably want to be "local") and AllowAdvertise (and set it to "no").
Upvotes: 1