/tags/beta-1.0.2/Setup/PHPManagerSetupHelper/SetupAction.cs
C# | 40 lines | 24 code | 8 blank | 8 comment | 0 complexity | 79a456b18edcfe53a7b09e957f31b7f7 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
- //-----------------------------------------------------------------------
- // <copyright>
- // Copyright (C) Ruslan Yakushev for the PHP Manager for IIS project.
- //
- // This file is subject to the terms and conditions of the Microsoft Public License (MS-PL).
- // See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL for more details.
- // </copyright>
- //-----------------------------------------------------------------------
-
- using System.ComponentModel;
- using System.Configuration.Install;
- using System.Reflection;
-
- namespace Web.Management.PHP.Setup
- {
-
- [RunInstaller(true)]
- public class SetupAction : Installer
- {
-
- public override void Install(System.Collections.IDictionary stateSaver)
- {
- base.Install(stateSaver);
-
- Assembly assembly = Assembly.GetExecutingAssembly();
- AssemblyName assemblyName = assembly.GetName();
- string assemblyFullName = assemblyName.FullName;
- string clientAssemblyFullName = assemblyFullName.Replace(assemblyName.Name, "Web.Management.PHP");
-
- InstallUtil.AddUIModuleProvider("PHP", "Web.Management.PHP.PHPProvider, " + clientAssemblyFullName);
- }
-
- public override void Uninstall(System.Collections.IDictionary savedState)
- {
- base.Uninstall(savedState);
-
- InstallUtil.RemoveUIModuleProvider("PHP");
- }
- }
- }