Exemplo n.º 1
0
        static void Uninstall(string identity, string specAssemblyFile)
        {
            var spec = SpecLoader.FromAssembly(specAssemblyFile);

            if (!string.IsNullOrEmpty(identity))
            {
                spec.Identity = identity;
            }
            spec.Uninstall();
        }
Exemplo n.º 2
0
        static void Code()
        {
            var spec = SpecLoader.FromAssembly <MyNotepadInstallSpecClass>();
            var id   = 5;

            spec.TargetDir = "C:\\_cus" + id;
            // spec.IsUserMode = true;
            spec.Interface = InstallationInterface.ProgressUi;
            spec.Identity += id;
            spec.Install();
            Console.WriteLine("Installed");
        }
Exemplo n.º 3
0
		public static InstallationSpecification SpecFrom<TAssembly>()
		{
			return SpecLoader.FromAssembly<TAssembly>();
		}
Exemplo n.º 4
0
		public static InstallationSpecification SpecFromEntryAssembly()
		{
			var asm = Assembly.GetEntryAssembly();
			return SpecLoader.FromAssembly(asm);
		}
Exemplo n.º 5
0
		public static InstallationSpecification SpecFromCaller()
		{
			var asm = Assembly.GetCallingAssembly();
			return SpecLoader.FromAssembly(asm);
		}