Title | Installing Stata 18 from the Windows command line | |
Author | Hua Peng, StataCorp |
This FAQ explains how to install Stata or StataNow from the command line. Below we will refer to Stata, but we really mean either Stata or StataNow. We will be explicit if you need to do something different for one vs. the other.
core | Required Stata files and dlls |
---|
StataMP64 | 64-bit Stata/MP or StataNow/MP |
---|---|
StataSE64 | 64-bit Stata/SE or StataNow/SE |
StataBE64 | 64-bit Stata/BE or StataNow/BE |
USEPERSONALDIR | Default to 1 |
---|---|
INSTALLDIR1 | Default to “C:\data” |
ALLUSERS | Default to 1 |
USERNAME | Default to current user |
E:\SetupStataNow18.exe /s /v"/qn ADDLOCAL=core,StataMP64"To install 64-bit Stata/BE for all users, and using the "C:\data" folder as the default working directory:
E:\SetupStata18.exe /s /v"/qn ADDLOCAL=core,StataBE64 USEPERSONALDIR=0"To perform a silent uninstall of StataNow from command line:
E:\SetupStataNow18.exe /s /x /v"/qn"
1. Create the folder stata_install in the C: drive.
2. Launch cmd.exe as an Administrator.
3. Use cd to move into the folder where SetupStata18.exe is located.
4. Type
SetupStata18.exe /s /x /b"C:\stata_install" /v"/qn"5. Stata18.msi will be in C:\stata_install\.
Method 2
1. Run SetupStata18.exe once it is on a Windows machine.
2. Search for Stata18.msi; it is usually in a sub-folder of the following location:
C:\Users\YOURUSERNAME\AppData\Local\Downloaded Installations\
How can I install Stata 17 from the command line without GUI under Windows?