Skip to content

Service Install example is out of date.. should implement <StandardDirectory> instead #37133

@Kapanther

Description

@Kapanther

All of this part

<Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <!-- 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> 

Can be replaced with

<StandardDirectory Id="ProgramFiles6432Folder">	<!-- Create a folder within the parent folder given the name -->	<Directory Id="INSTALLFOLDER" Name="$(Name)" />	</StandardDirectory> 

and visual studio wont display the compiling error


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.


Associated WorkItem - 500377

Metadata

Metadata

Labels

📌 seQUESTeredIdentifies that an issue has been imported into Quest.dotnet-fundamentals/svcin-prThis issue will be closed (fixed) by an active pull request.okr-freshnessOKR: Freshness of contentokr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions