
Title | Installing StataNow 19 or Stata 19 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 versus the other.
StataNow 19 and Stata 19 require a minimum Windows OS level of Windows 10. See a list of supported Windows OS.
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:\SetupStataNow19.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:\SetupStata19.exe /s /v"/qn ADDLOCAL=core,StataBE64 USEPERSONALDIR=0"To perform a silent uninstall of StataNow from command line:
E:\SetupStataNow19.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 SetupStataNow19.exe is located.
4. Type
SetupStataNow19.exe /s /x /b"C:\stata_install" /v"/qn"5. StataNow19.msi will be in C:\stata_install\.
Method 2
1. Run SetupStataNow19.exe once it is on a Windows machine.
2. Search for StataNow19.msi; it is usually in a sub-folder of the following location:
C:\Users\YOURUSERNAME\AppData\Local\Downloaded Installations\
How can I install Stata 18 from the command line without GUI under Windows?