docs
docs copied to clipboard
WIX7009 The Directory symbol 'TARGETDIR' conflicts with a virtual symbol. Use the 'override' access modifier to override the virtual symbol or use a different Id to avoid the conflict. Referenced from wixstd.wixlib
Type of issue
Code doesn't work
Description
The given XML for Package.wxs does not work as the title indicates.
Page URL
https://learn.microsoft.com/en-us/dotnet/core/extensions/windows-service-with-installer?tabs=wix
Content source URL
https://github.com/dotnet/docs/blob/main/docs/core/extensions/windows-service-with-installer.md
Document Version Independent Id
83c4d805-1394-90b7-6def-cf809c33ae22
Article author
@IEvangelist
Metadata
- ID: e044209a-0802-07c0-7518-208967a3ef02
- Service: dotnet-fundamentals
I am also struggling with this error message.
Me too. Did anyone resolve this?
instead of
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFiles64Folder">
<!-- Create a folder inside program files -->
<Directory Id="ROOTDIRECTORY" Name="$(var.Manufacturer)">
<!-- Create a folder within the parent folder given the name -->
<Directory Id="INSTALLFOLDER" Name="$(Name)" />
</Directory>
</Directory>
</Directory>
try
<StandardDirectory Id="ProgramFiles64Folder">
<!-- Create a folder inside program files -->
<Directory Id="ROOTDIRECTORY" Name="$(var.Manufacturer)">
<!-- Create a folder within the parent folder given the name -->
<Directory Id="INSTALLFOLDER" Name="$(Name)" />
</Directory>
</StandardDirectory>