title: NSIS - retrieving the start menu folder not working as expected
body: <p>In my NSIS script, the <code>MUI_STARTMENU_GETFOLDER</code> macro is not working as expected - instead of giving me the folder that the user actually entered, it gives me the default that I set earlier. Near the beginning of my script I have:</p>
  
  <pre><code>Var StartMenuFolder ; Define variable to hold start menu folder
  !define MUI_STARTMENUPAGE_DEFAULTFOLDER "${PRODUCT_PUBLISHER}\${PRODUCT_NAME}" ; Set default start menu folder
  !insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
  </code></pre>
  
  <p>I can access <code>$StartMenuFolder</code> in installer (but NOT uninstaller) Sections by use of <code>!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder</code>. In uninstaller sections and macros, instead of returning the actual start menu folder, it returns the default folder I specified above.</p>