Hello everyone,
I don’t know if I’m in the right forum, but here’s my request.
I have been trying to install MongoDB on Windows as a Windows service for about a week now. I am using Wix Toolset v4.
The MSI file of MongoDB Community Server is included in the Bundle.wxs and the required parameters are passed via MsiProperty. However, there is a problem with the whole to install MongoDB as WindowsService the ADDLOCAL property must be set, this is not possible because Wix Toolset v4 ADDLOCAL is now marked as reserved and generates an error, with v3 this was previously only a warning. Is there a possibility to run MongoDB as WIndowsService via MSIEXEC in the Wix Bundle?
Version 1: (Bundle.wxs - Bootstrapper Application WIX):
<MsiPackage Id="MongoDb_73"
Compressed="yes"
SourceFile=".\ThirdParty\mongodb-windows-x86_64-7.0.3-signed.msi"
Vital="yes"
Visible="yes"
EnableFeatureSelection="yes"
bal:DisplayInternalUICondition="yes">
<MsiProperty Name="ServerService" Value="1"/> -- not working
<MsiProperty Name="InstallCompassFeature" Value="0"/> -- not working
<MsiProperty Name="SHOULD_INSTALL_COMPASS" Value="0"/> -- works
</MsiPackage>
Version 2:
<MsiPackage Id="MongoDb_73"
Compressed="yes"
SourceFile=".\ThirdParty\mongodb-windows-x86_64-7.0.3-signed.msi"
Vital="yes"
Visible="yes"
EnableFeatureSelection="yes"
bal:DisplayInternalUICondition="yes">
<MsiProperty Name="ADDLOCAL" Value="ServerService"/>
<MsiProperty Name="SHOULD_INSTALL_COMPASS" Value="0"/>
</MsiPackage>
>Bundle.wxs(82): Error WIX0365 : The 'ADDLOCAL' MsiProperty is controlled by the bootstrapper and cannot be authored. (Illegal properties are: 'ACTION', 'ADDLOCAL', 'ADDSOURCE', 'ADDDEFAULT', 'ADVERTISE', 'ALLUSERS', 'REBOOT', 'REINSTALL', 'REINSTALLMODE', or 'REMOVE'.) Remove the MsiProperty element.