title: Installing a full MySQL install silently using NSIS
body: <p>I have a basic NSIS script setup like so:</p>
  <pre><code>!include MUI2.nsh
  !include WordFunc.nsh
  !insertmacro VersionCompare
  !include LogicLib.nsh
  !include InstallOptions.nsh
  !include nsDialogs.nsh
  
  Name &quot;sqltest&quot;
  !define MUI_HEADERIMAGE
  !define MUI_HEADERIMAGE_RIGHT
  
  OutFile &quot;sqltest.exe&quot;
  InstallDir &quot;$PROGRAMFILES\sqltest&quot;
  RequestExecutionLevel admin
  
  XPStyle on
  
  !define MUI_WELCOMEPAGE_TEXT &quot;The MySQL Test Install&quot;
  !insertmacro MUI_PAGE_WELCOME
  !insertmacro MUI_PAGE_DIRECTORY
  !insertmacro MUI_PAGE_INSTFILES
  ;!insertmacro MUI_UNPAGE_CONFIRM
  ;!insertmacro MUI_UNPAGE_INSTFILES
  !insertmacro MUI_LANGUAGE &quot;English&quot;
  
  Section &quot;install&quot;
      
      SetOutPath $INSTDIR
      File /r &quot;V:\Installers\MySQL\Release\*.*&quot;
      ExecWait '&quot;$SYSDIR\msiExec&quot; /i &quot;$INSTDIR\mysql.msi&quot; /passive'
      
      
  SectionEnd
  </code></pre>
  <p>However, this only seems to install another installer:</p>
  <p><a href="https://i.stack.imgur.com/cSQWQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cSQWQ.jpg" alt="mysql install folder" /></a></p>
  <p>If I run the .msi file manually I get to choose &quot;full&quot; and the process actually installs MySQL in full, with the service running etc.</p>
  <p>How can I achieve this kind of install, silently, using NSIS?</p>
  <p><strong>Update:</strong></p>
  <p>I tried a lot of various commands and found that nothing I did installed the full MySQL with arguments. I managed to install MySQL full, but this didn't install the service and other key features (top part of <a href="http://dev.mysql.com/doc/relnotes/mysql-installer/en/mysql-installer-news-1-4-12.html" rel="nofollow noreferrer">http://dev.mysql.com/doc/relnotes/mysql-installer/en/mysql-installer-news-1-4-12.html</a>)</p>
  <p>I tried the second section of the above link, with no luck. All it did was install a folder with the options shown in the image above.</p>
  <p>I tried using the command installer, as the poster below alluded to. However, this gave me an Oracle login prompt! I need to install and this this up without user interaction.</p>
  <p><a href="https://i.stack.imgur.com/IoC7c.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IoC7c.jpg" alt="enter image description here" /></a></p>
  <p>Any ideas?</p>