Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 3
0
        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);
            }
        }
        private void deleteLib() {
            VirtualBoxComInteropAssemblyBuilder iaBuilder = new VirtualBoxComInteropAssemblyBuilder();
            iaBuilder.DeleteTypeLib(Utils.GetApplicationPath());

            this.Context.LogMessage("Deleted Interop-Assembly");
        }