aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLenny Komow <lenny@lunarg.com>2017-07-18 11:20:05 -0600
committerLenny Komow <lenny@lunarg.com>2017-07-19 12:51:46 -0600
commitf585cbcdc7901c02f65c939b6c4e222cc10d89f4 (patch)
tree6ccc4f7adb39efea5da5aad8cb4841ed0c89471a
parent3bbee92337b1b2a349c9c32a284440a5608d7568 (diff)
downloadusermoji-f585cbcdc7901c02f65c939b6c4e222cc10d89f4.tar.xz
winsdk: Hide runtime in programs and features
Change-Id: Ibc5028f660c91f66d986af19f6c7959eb9b55359
-rw-r--r--windowsRuntimeInstaller/InstallerRT.nsi15
1 files changed, 5 insertions, 10 deletions
diff --git a/windowsRuntimeInstaller/InstallerRT.nsi b/windowsRuntimeInstaller/InstallerRT.nsi
index e35008c1..5bc2098b 100644
--- a/windowsRuntimeInstaller/InstallerRT.nsi
+++ b/windowsRuntimeInstaller/InstallerRT.nsi
@@ -409,15 +409,10 @@ Section
# Set SystemComponent to 1 for those instances that are not to be visible to Add/Remove Programs.
# Set SystemComponent to 0 for the instance that is to be visible to Add/Remove Programs.
- ${If} $IC > 2
- IntOp $1 $IC - 1
- WriteRegDword HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCTNAME}${PRODUCTVERSION}-$IC" "SystemComponent" 0
- WriteRegDword HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCTNAME}${PRODUCTVERSION}-$1" "SystemComponent" 1
- ${ElseIf} $IC = 2
- WriteRegDword HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCTNAME}${PRODUCTVERSION}-$IC" "SystemComponent" 0
- WriteRegDword HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCTNAME}${PRODUCTVERSION}" "SystemComponent" 1
+ ${If} $IC > 1
+ WriteRegDword HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCTNAME}${PRODUCTVERSION}-$IC" "SystemComponent" 1
${Else}
- WriteRegDword HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCTNAME}${PRODUCTVERSION}" "SystemComponent" 0
+ WriteRegDword HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCTNAME}${PRODUCTVERSION}" "SystemComponent" 1
${EndIf}
StrCpy $1 25
@@ -567,9 +562,9 @@ Section "uninstall"
${EndIf}
${If} $IC > 2
IntOp $IC $IC - 1
- WriteRegDword HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCTNAME}${PRODUCTVERSION}-$IC" "SystemComponent" 0
+ WriteRegDword HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCTNAME}${PRODUCTVERSION}-$IC" "SystemComponent" 1
${ElseIf} $IC = 2
- WriteRegDword HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCTNAME}${PRODUCTVERSION}" "SystemComponent" 0
+ WriteRegDword HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCTNAME}${PRODUCTVERSION}" "SystemComponent" 1
${Else}
# Last uninstall
IntOp $IC $IC - 1