From f585cbcdc7901c02f65c939b6c4e222cc10d89f4 Mon Sep 17 00:00:00 2001 From: Lenny Komow Date: Tue, 18 Jul 2017 11:20:05 -0600 Subject: winsdk: Hide runtime in programs and features Change-Id: Ibc5028f660c91f66d986af19f6c7959eb9b55359 --- windowsRuntimeInstaller/InstallerRT.nsi | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'windowsRuntimeInstaller') 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 -- cgit v1.2.3