Exemplo n.º 1
0
        public static void ApplyChanges(string installPath, string resourceFileName)
        {
            var registerKeyMan = new RegistryKeyManager();

            registerKeyMan.AddExternalManifest();
            registerKeyMan.ExtractResourceFile("ChangeScalingBehavior", installPath, "Resources", resourceFileName);
        }
Exemplo n.º 2
0
        public static void UndoChanges(ApplicationVersion appVersion, string installPath, string resourceFileName)
        {
            var registerKeyMan      = new RegistryKeyManager();
            var resourceFileManager = new ResourceFilesManager();

            resourceFileManager.RemoveResourceFile(installPath + resourceFileName);
            if (resourceFileManager.NoStudioManifestFile(appVersion.StudioVersions) &&
                registerKeyMan.IsRegistryKey() &&
                resourceFileManager.NoMultiTermManifestFile(appVersion.MultiTermVersions))
            {
                registerKeyMan.RemoveExternalManifest();
            }
        }