Skip to content

Commit 55b991a

Browse files
authored
Fix WIX7009 error using StandardDirectory in Windows Service installer documentation (#47592)
1 parent 713ff89 commit 55b991a

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

docs/core/extensions/windows-service-with-installer.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -186,17 +186,15 @@ After the project reference has been added, configure the _Package.wxs_ file. Op
186186
<MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit." />
187187

188188
<!-- Define the directory structure -->
189-
<Directory Id="TARGETDIR" Name="SourceDir">
190-
<Directory Id="ProgramFiles64Folder">
189+
<StandardDirectory Id="ProgramFiles64Folder">
191190

192-
<!-- Create a folder inside program files -->
193-
<Directory Id="ROOTDIRECTORY" Name="$(var.Manufacturer)">
191+
<!-- Create a folder inside program files -->
192+
<Directory Id="ROOTDIRECTORY" Name="$(var.Manufacturer)">
194193

195-
<!-- Create a folder within the parent folder given the name -->
196-
<Directory Id="INSTALLFOLDER" Name="$(Name)" />
197-
</Directory>
194+
<!-- Create a folder within the parent folder given the name -->
195+
<Directory Id="INSTALLFOLDER" Name="$(Name)" />
198196
</Directory>
199-
</Directory>
197+
</StandardDirectory>
200198

201199
<!-- The files inside this DirectoryRef are linked to
202200
the App.WindowsService directory via INSTALLFOLDER -->

0 commit comments

Comments
 (0)