docs icon indicating copy to clipboard operation
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

Open AndreHinz opened this issue 1 year ago • 2 comments

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

AndreHinz avatar Aug 28 '24 11:08 AndreHinz

I am also struggling with this error message.

bg-tech-lab avatar Aug 29 '24 10:08 bg-tech-lab

Me too. Did anyone resolve this?

fruitbatinshades avatar Oct 08 '24 11:10 fruitbatinshades

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>

Evertude avatar Dec 09 '24 18:12 Evertude