Stata: Data Analysis and Statistical Software
   >> Home >> Resources & support >> FAQs >> Installing Stata from the Windows command line

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

Title   Installing Stata from the Windows command line
Author Hua Peng, StataCorp
Date June 2009; updated July 2011

  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"
    
Bookmark and Share 
FAQs
What's new?
Statistics
Data management
Graphics
Programming Stata
Mata
Resources
Internet capabilities
Stata for Windows
Stata for Unix
Stata for Mac
Technical support
Like us on Facebook Follow us on Twitter Follow us on LinkedIn
Follow us
© Copyright 1996–2012 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index   |   View mobile site