Skip to content

Commit 8a1078a

Browse files
author
Joachim Marder
authored
Merge pull request #50 from karooma/patch-1
Update Generate.Ribbon.Markup.pas.ps1
2 parents edb6a73 + 5bec2dd commit 8a1078a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Designer/Bin/Generate.Ribbon.Markup.pas.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ function FindFileInLocation($pLocation, $pFileName)
7373
{
7474
return "${env:ProgramFiles(x86)}\Windows Kits\8.1\bin\x86\$pFileName"
7575
}
76+
# begin modification: add the path to windows 10 sdk.
77+
elseif (Test-Path "${env:ProgramFiles(x86)}\Windows Kits\10\bin\$pFileName")
78+
{
79+
return "${env:ProgramFiles(x86)}\Windows Kits\10\bin\x86\$pFileName"
80+
}
81+
# end modification.
7682
elseif (Test-Path "$PSScriptRoot\$pFileName")
7783
{
7884
return "$PSScriptRoot\$pFileName"
@@ -229,4 +235,4 @@ end.
229235

230236
$pasFile.WriteLine($FileEndPart)
231237
$pasFile.Close()
232-
write-host "Ribbon pascal markup file generation successful: '$pasFilePath'"
238+
write-host "Ribbon pascal markup file generation successful: '$pasFilePath'"

0 commit comments

Comments
 (0)