private void deleteLib() { VirtualBoxComInteropAssemblyBuilder iaBuilder = new VirtualBoxComInteropAssemblyBuilder(); iaBuilder.DeleteTypeLib(Utils.GetApplicationPath()); this.Context.LogMessage("Deleted Interop-Assembly"); }
public override void Install(System.Collections.IDictionary stateSaver) { try { VirtualBoxComInteropAssemblyBuilder iaBuilder = new VirtualBoxComInteropAssemblyBuilder(); iaBuilder.DeleteTypeLib(Utils.GetApplicationPath()); iaBuilder.BuildLib(Utils.GetApplicationPath()); this.Context.LogMessage("Created Interop-Assembly."); } catch (Exception ex) { this.Context.LogMessage("Creation of Interop-Assembly failed. Is Virtualbox installed?"); throw new InstallException("Creation of Interop-Assembly failed. Is Virtualbox installed?", ex); } finally { base.Install(stateSaver); } }