A relatively easy way to debug the Install or Uninstall method called at the Predefined Custom Action ".Net Installer Class Action" is by adding the following lines to your sourcecode:
Code: Select all
using System.Diagnostics;
using System.Reflection;
using System.Windows;
#if DEBUG
string version = this.GetType().Assembly.GetName().Version.ToString();
int processId = Process.GetCurrentProcess().Id;
string message = string.Format("This is assembly version [{0}]. Please attach the debugger to process [{1}].", version, processId);
MessageBox.Show(message, "Debug", MessageBoxButton.OK, MessageBoxImage.Information, MessageBoxResult.OK);
#endif