Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-s authored and barnson committed Nov 1, 2023
1 parent 9e756b2 commit de27caa
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ File versions are determined using the [Property](../../xsd/wix/property.md), [D

```xml
<Property Id="USER32VERSION">
<DirectorySearch Id="SystemFolderDriverVersion" Path="[SystemFolder]">
<FileSearch Name="user32.dll" MinVersion="6.0.6001.1750"/>
</DirectorySearch>
<DirectorySearch Id="SystemFolderDriverVersion" Path="[SystemFolder]">
<FileSearch Name="user32.dll" MinVersion="6.0.6001.1750"/>
</DirectorySearch>
</Property>
```

Expand All @@ -26,7 +26,7 @@ Once you have determined whether the file exists with the requested version you

```xml
<Condition Message="The installed version of user32.dll is not high enough to support this installer.">
<![CDATA[Installed OR USER32VERSION]]>
<![CDATA[Installed OR USER32VERSION]]>
</Condition>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ You first need to define the parent DirectorySearch element. This is expected to

```xml
<Property Id="SHDOCVW">
<DirectorySearch Id="WinDir" Path="[WindowsFolder]">
<DirectorySearch Id="Media" Path="Media">
<FileSearch Id="Chimes" Name="chimes.wav" />
</DirectorySearch>
</DirectorySearch>
<DirectorySearch Id="WinDir" Path="[WindowsFolder]">
<DirectorySearch Id="Media" Path="Media">
<FileSearch Id="Chimes" Name="chimes.wav" />
</DirectorySearch>
</DirectorySearch>
</Property>
```

Expand All @@ -24,9 +24,9 @@ To search for another file in the Media directory, you need to reference all the

```xml
<Property Id="USER32">
<DirectorySearchRef Id="Media" Parent="WinDir" Path="Media">
<FileSearch Id="Chord" Name="chord.wav" />
</DirectorySearchRef>
<DirectorySearchRef Id="Media" Parent="WinDir" Path="Media">
<FileSearch Id="Chord" Name="chord.wav" />
</DirectorySearchRef>
</Property>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ In the following example, the path to \[WindowsFolder\]Microsoft.NET is defined

```xml
<Property Id="NGEN2DIR">
<DirectorySearch Id="Windows" Path="[WindowsFolder]">
<DirectorySearch Id="MS.NET" Path="Microsoft.NET">
</DirectorySearch>
</DirectorySearch>
<DirectorySearch Id="Windows" Path="[WindowsFolder]">
<DirectorySearch Id="MS.NET" Path="Microsoft.NET">
</DirectorySearch>
</DirectorySearch>
</Property>
```

Expand All @@ -21,13 +21,13 @@ Under the search root, define the directory you want returned and set the Direct

```xml
<Property Id="NGEN2DIR">
<DirectorySearch Id="Windows" Path="[WindowsFolder]">
<DirectorySearch Id="MS.NET" Path="Microsoft.NET">
<DirectorySearch Id="Ngen2Dir" Depth="2" AssignToProperty="yes">
<FileSearch Id="Ngen_exe" Name="ngen.exe" MinVersion="2.0.0.0" />
</DirectorySearch>
</DirectorySearch>
</DirectorySearch>
<DirectorySearch Id="Windows" Path="[WindowsFolder]">
<DirectorySearch Id="MS.NET" Path="Microsoft.NET">
<DirectorySearch Id="Ngen2Dir" Depth="2" AssignToProperty="yes">
<FileSearch Id="Ngen_exe" Name="ngen.exe" MinVersion="2.0.0.0" />
</DirectorySearch>
</DirectorySearch>
</DirectorySearch>
</Property>
```

Expand Down

0 comments on commit de27caa

Please sign in to comment.