Beispiel #1
0
        // Remove the StrongName SkipVerification registry for private WPF package.
        internal static void Remove(HostCPU cpu)
        {
            Registry.LocalMachine.DeleteSubKey(s_SNKeyRegPath, false);

            if (cpu == HostCPU.x64)
            {
                // Remove the strong name key for WOW support.
                Registry.LocalMachine.DeleteSubKey(s_SNKeyWowRegPath, false);
            }
        }
Beispiel #2
0
        // Create StrongName skipVerification registry key for private wpf package.
        internal static void Create(HostCPU cpu)
        {
            RegistryKey regWPFSNKey;

            regWPFSNKey = Registry.LocalMachine.CreateSubKey(s_SNKeyRegPath);
            regWPFSNKey.Close();

            if (cpu == HostCPU.x64)
            {
                // Create the strong name key for WOW supoort.
                regWPFSNKey = Registry.LocalMachine.CreateSubKey(s_SNKeyWowRegPath);
                regWPFSNKey.Close();
            }
        }