Reputation: 2867
I'm completely new on this and I'm trying to create a .wxs file to create a .msi installer for a .dll that I created.
I've checked Wix documentation and asked help for chatgpt as well, but no success to fix the problem.
Below my .wxs xml:
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Product Id="*" Name="RTD Installer" Version="0.0.1" Manufacturer="ksr" Language="1033" UpgradeCode="{00F8DEE0-EEEE-FFFF-AAAA-623A8A8007D3">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine"/>
<MajorUpgrade DowngradeErrorMessage="Uma versão mais recente já está instalada."/>
<MediaTemplate EmbedCab="yes"/>
<Feature Id="ProductFeature" Title="Main Feature" Level="1">
<ComponentGroupRef Id="ProductComponents"/>
</Feature>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="RTD">
<ComponentGroup Id="ProductComponents">
<Component Id="ProductComponent">
<File Source="bin/Release/RTDService.dll"/>
<Class Id="{4b000004-0000-0000-0000-90000615130d}" Context="InprocServer32" Description="RTD Server" ThreadingModel="apartment">
<ProgId Id="RTD" Description="RTD Server" />
</Class>
</Component>
</ComponentGroup>
</Directory>
</Directory>
</Directory>
<!-- Propriedades e atualizações movidas para dentro do Product -->
<Property Id="ARPCOMMENTS" Value="RTD Server"/>
<Property Id="ARPHELPLINK" Value="http://rtd.ksr.com.br/help"/>
<Property Id="ARPURLINFOABOUT" Value="http://rtd.ksr.com.br"/>
<Property Id="ARPURLUPDATEINFO" Value="http://rtd.ksr.com.br/update"/>
<Property Id="ARPREADME" Value="Leia-me"/>
<Property Id="ARPCONTACT" Value="[email protected]"/>
</Product>
</Wix>
I'm getting the following error when executing the wix build ExQuoteService.wxs
:
error WIX0005: The Wix element contains an unexpected child element 'Product'.
Upvotes: 0
Views: 557
Reputation: 35866
As per the WiX v4 documentation, there is no Product
element in WiX v4 any longer. What you have there is v3 .wxs code with the v4 namespace. Maybe you are still reading the v3 documentation?
It might be easier to put the namespace back to the v3 namespace and use the conversion tooling to upgrade for you.
You might also find the Deployment Dojo show useful. I cover these topics there.
Upvotes: 2