title: How to open chm file from a button in VS Lightswitch
body: <p>What sort of code do i need to put in a button's <strong>can_execute() method</strong> in order to open a .chm help file i made for my lightswitch application and how will i make sure that even after publishing the whole application... the .chm file is transferred into the user's computer automatically and it stays in the right directory?  ..... Thanks!</p>
  
  <pre><code> partial void Help_Execute()
      {
          // Write your code here.
  
          if (AutomationFactory.IsAvailable)
          {
              dynamic shell = AutomationFactory.CreateObject("Shell.Application");
              shell.ShellExecute("C:/Users/Thuto/Documents/Visual Studio 2010/Projects/ElectricalContructors/ElectricalContructors/Client/Resources/SparkHelpDocumentation.chm", "", "", "open", 1);
          }
          else
          {
              this.ShowMessageBox("Automation not available");
          }
  
      }
  </code></pre>
  
  <p>After a hours of trying to find a better way i tried this and it worked but i want to know the proper way of doing it, thanks!</p>