Skip to content

Commit d2e662b

Browse files
committed
formatting the README.md again
1 parent d4f71f3 commit d2e662b

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed
Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
1. The Problem:
1+
1. The Problem:
22
When you try to install the SDK, it will stop in the middle leaving you an incomplete state. The hero is *Windows Desktop Extension SDK-x86_en-us.msi*, despite all other 50+ MSIs install perfectly, this guy decided to call *C:\Program Files (x86)\Windows Kits\10\bin\x86\GenerateUnionWinMD.cmd*, within this script we got:
3-
> REM Check for elevation
4-
> net session >nul 2>&1
5-
> if %ERRORLEVEL% EQU 0 (
6-
> ECHO Confirmed running as administrator
7-
> ) else (
8-
> ECHO Error: You must run this script from an elevated command prompt.
9-
> EXIT /B 2
10-
> )
3+
```
4+
REM Check for elevation
5+
net session >nul 2>&1
6+
if %ERRORLEVEL% EQU 0 (
7+
ECHO Confirmed running as administrator
8+
) else (
9+
ECHO Error: You must run this script from an elevated command prompt.
10+
EXIT /B 2
11+
)
12+
```
1113
It was calling **net session** to check if you are running as administrator. And although we are admin inside the container, the **Server** service is not running, and we can't start it either, it's not supported as of TP5, full stop.
1214
1315
[Reference Link on TechNet forum](https://social.msdn.microsoft.com/Forums/vstudio/en-US/bfc4c36d-88d3-4b65-9208-580ee1c1d19d/windows-10-sdk-10010240-the-installer-failed-fatal-error-during-installation-error-code?forum=vssetup#be5392c5-cdce-4e0f-8e36-0617a42caeb0)
1416
15-
2. The solution:
17+
2. The solution:
1618
We fake the **net.exe** with a skeleton .net application which does not do anything, so long as exit with 0 to make the script happy. We replace the real net.exe with our fake one and put the real one back after the installation.
1719

0 commit comments

Comments
 (0)