title: Google Sheet add-on onInstall() and onOpen() not working
body: <p>I am trying to create an add-on for Google Sheets, but running in the problem.</p>
  
  <p>The add-on creates additional menu in "Add-on" menu using <code>onOpen()</code> function of Google Drive API, but it does not do that <code>onInstall()</code>. So I have been told to add the folloing</p>
  
  
  
  <pre class="lang-js prettyprint-override"><code>function onInstall(e) {
     onOpen(e)
  }
  </code></pre>
  
  <p>now, what I have tried to do is the following, but it still does not work</p>
  
  <pre class="lang-js prettyprint-override"><code>    function onInstall() {
         SpreadsheetApp.getUi().createAddonMenu()
            .addItem('Browse My Add-on', 'browseMyAddOn')
            .addToUi();
      }
  
      function onOpen() {
          SpreadsheetApp.getUi().createAddonMenu()
            .addItem('Browse My Add-on', 'browseMyAddOn')
            .addToUi();
      }
  </code></pre>
  
  <p>Please help me</p>