Exemplo n.º 1
0
        public override void Install(IDictionary savedState)
        {
            base.Install(savedState);

            if (!Context.Parameters.ContainsKey(TargetDirKey))
            {
                throw new InstallException($"Missing '{TargetDirKey}' parameter.");
            }

            var targetDir = Context.Parameters[TargetDirKey].TrimEnd(Path.DirectorySeparatorChar);

            ShellCommandHelper.SetShellCommands(
                FileTypes.VideoTypes,
                VerbKey,
                VerbValue,
                Path.Combine(targetDir, "subtle.exe"),
                Path.Combine(targetDir, "subtle.ico"));
        }
Exemplo n.º 2
0
        public override void Uninstall(IDictionary savedState)
        {
            base.Uninstall(savedState);

            ShellCommandHelper.DeleteShellCommands(FileTypes.VideoTypes, VerbKey);
        }