Home  /  Resources & support  /  FAQs  /  Installing Stata 15 from the Windows command line

How can I install Stata 15 from the command line without GUI under Windows?

Title   Installing Stata 15 from the Windows command line
Author Hua Peng, StataCorp

  1. To install Stata from the command line without GUI, use the /qn option.
  2. To add features, use ADDLOCAL. There are two required features:
    Ado Stata ado-files
    Core Other required Stata files and dlls
    The following features need to be installed based on your license and operating system:
    StataMP6464-bit Stata/MP
    StataSE6464-bit Stata/SE
    StataIC6464-bit Stata/IC
    StataSM6464-bit Small Stata
    StataMP3232-bit Stata/MP
    StataSE3232-bit Stata/SE
    StataIC3232-bit Stata/IC
    StataSM3232-bit Small Stata
  3. The following properties can be used to control the behavior of the installation:
    USEPERSONALDIRDefault to 1
    INSTALLDIR1Default to “C:\data”
    ALLUSERDefault to 1
    USERNAMEDefault to current user
  4. Examples (drive E: is arbitrary and represents the DVD drive)
    To install 64-bit Stata/MP for all users:
           E:\Setup.exe /qn ADDLOCAL=Ado,Core,StataMP64
    
    To install 32-bit Stata/SE for all users:
           E:\Setup.exe /qn ADDLOCAL=Ado,Core,StataSE32	
    
    To install 64-bit Stata/IC for all users, and using the “C:\data” folder as the default working directory:
           E:\Setup.exe /qn ADDLOCAL=Ado,Core,StataIC64 USEPERSONALDIR=0
    
    To install 32-bit Stata/IC for all users, and using the “C:\statadata” folder as the default working directory:
           E:\Setup.exe /qn ADDLOCAL=Ado,Core,StataIC32 USEPERSONALDIR=0 INSTALLDIR1="C:\\statadata"