protected override void OnBeforeUninstall(IDictionary savedState) { base.OnBeforeUninstall(savedState); try { PuttyExtension.UnregisterBHO(typeof(PuttyExtension)); } catch (Exception ex) { MessageBox.Show("Uninstalling error " + ex); } }
protected override void OnCommitted(IDictionary savedState) { base.OnCommitted(savedState); try { PuttyExtension.RegisterBHO(typeof(PuttyExtension)); } catch (Exception ex) { MessageBox.Show("Installing error " + ex); } }