Replies: 4 comments 4 replies
-
WiX doesn't use issues for support. We moved this issue to the GitHub discussions area. You might also consider asking your question on Stack Overflow. |
Beta Was this translation helpful? Give feedback.
-
I have a problem pretty much the same as topic starter's. I spent some time googling and stackOverflowing this issue but still have not found a clear answer. To simplify my question I'd rather give you my case as an example.
MongoDB installation package has a feature called "ServerService". I should set it to "1" if I want MongoDB to be installed as a service. I am realy looking forward "Depl. Dojo season 2" but now I just can not find any solution to my problem. |
Beta Was this translation helpful? Give feedback.
-
MSI doesn't allow you to set a feature to "1" from the command line. You can only set secure custom public properties from the command line. An examination of the MSI using ORCA reveals the following such properties of interest. MONGO_DATA_PATH I see the MongoDB MSI is written in WiX. They might want to come here for support if they are boxing themselves into a corner. Or you could author a transform to beat it into submission. |
Beta Was this translation helpful? Give feedback.
-
@robmen does wix v4 block the INSTALLLEVEL property? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
WiX Version
4.0.3
.NET or MSBuild or Visual Studio Version
.NET 7 - MSBuild-Version 17.8.3+195e7f5a3 für .NET Framework
HeatWave Version
1.0.2.1
Windows Version
Win10 22H2
Repro Repo
No response
Repro Steps
We are currently migrating from WiX 3 to WiX 4. In the MSI installer we use ADDLOCAL for selection of feature sets and also allow this by command line call. There is also a bundle installer for installing the prerequisites for the MSI installer. This also processes ADDLOCAL when the command line is called and passes the value to the MSI installer.
<Variable Name="ADDLOCAL" Value="" bal:Overridable="yes" Type="formatted" />
...
<MsiProperty Name="ADDLOCAL" Value="[ADDLOCAL]" />
Actual Result
Using WiX 3 this works fine but in WiX 4 it causes the compiler error
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.
Expected Result
Passing parameter ADDLOCAL works
Beta Was this translation helpful? Give feedback.
All reactions