Reviewed-by: Ashley DeSimone <[email protected]>

-----Original Message-----
From: Desimone, Nathaniel L 
Sent: Wednesday, October 30, 2019 4:49 PM
To: [email protected]
Cc: Desimone, Ashley E <[email protected]>; Pandya, Puja 
<[email protected]>
Subject: [edk2-staging/EdkRepo] [PATCH] EdkRepo: Make Installer use ProductCode 
from Vendor Customizer

Signed-off-by: Nate DeSimone <[email protected]>
Cc: Ashley E Desimone <[email protected]>
Cc: Puja Pandya <[email protected]>
---
 edkrepo_installer/EdkRepoInstaller/App.xaml.cs | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/edkrepo_installer/EdkRepoInstaller/App.xaml.cs 
b/edkrepo_installer/EdkRepoInstaller/App.xaml.cs
index 3e56f60..58186c9 100644
--- a/edkrepo_installer/EdkRepoInstaller/App.xaml.cs
+++ b/edkrepo_installer/EdkRepoInstaller/App.xaml.cs
@@ -214,7 +214,15 @@ namespace TianoCore.EdkRepoInstaller
 

         private bool FoundVendorCustomizedEdkRepoAlreadyInstalled(out 
RegistryKey FoundVendorUninstallKey)

         {

-            string ProductCode = InstallerStrings.ProductCode;

+            string ProductCode = null;

+            if (VendorCustomizer.Instance != null)

+            {

+                ProductCode = VendorCustomizer.Instance.ProductCode;

+            }

+            else

+            {

+                ProductCode = InstallerStrings.ProductCode;

+            }

             RegistryKey hklm = 
RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64);

             RegistryKey winUninstallRegistryKey = 
hklm.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", true);

             foreach (string VendorCustomizerProductCode in 
InstallerStrings.KnownVendorProductCodes)

-- 
2.23.0.windows.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#49782): https://edk2.groups.io/g/devel/message/49782
Mute This Topic: https://groups.io/mt/40038557/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to