File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -91,13 +91,21 @@ write-host "UICC.exe found: Using $UICCCmd"
91
91
92
92
# Use the provided xml file to Create the .bml, .h and .rc file
93
93
& $UICCCmd " /W0" " $xmlFilePath " " $bmlFilePath " " /header:$headerFilePath " " /res:$rcFilePath " " /name:$ResourceName "
94
+ If ($LASTEXITCODE -ne 0 )
95
+ {
96
+ exit $LASTEXITCODE
97
+ }
94
98
95
99
# Find rc.exe (Use the same locations as UICC.exe)
96
100
$RCCmd = FindFileInLocation - pLocation $UICCDir - pFileName " rc.exe"
97
101
write-host " RC.exe found: Using $RCCmd "
98
102
99
103
# Create the .RES resource file
100
- rc " $rcFilePath "
104
+ & $RCCmd " $rcFilePath "
105
+ If ($LASTEXITCODE -ne 0 )
106
+ {
107
+ exit $LASTEXITCODE
108
+ }
101
109
102
110
# Create a new Markup .pas file that will contain the Ribbon command constants.
103
111
You can’t perform that action at this time.
0 commit comments