»  Home »  Resources & support »  FAQs »  Installing Stata 15 for Windows on a network drive

How do I install Stata 15 for Windows on a network drive?

Title   Installing Stata 15 for Windows on a network drive
Author Hua Peng, StataCorp


You will need a network license before you can install Stata on a network drive. Once you have your network license, you can install Stata directly from the server itself, or, if you have the appropriate privileges, you can install Stata onto a mapped drive.

The installation procedure is the same as it is on a stand-alone workstation, except you select the appropriate drive. The default working directory (where Stata will store files and where it will look for any files it is asked to read) will default to the user’s documents directory on the server you install Stata. You will need to override this with the shortcut on the local machine.

Installing the right executable

The default executable type is 64-bit on a server with a 64-bit operating system. If you have workstations running 32-bit operating systems, you must install 32-bit executable on the server for those workstations to be able to run Stata.

License initialization

Once Stata is installed, you will need to run it once to initialize the license.

When you have done that, you can mount the Windows share on which you installed Stata and run Stata from there. If the network share will be mounted as the same drive from all workstations, it may be easiest to create a shortcut to it.

Creating shortcuts on workstations

Let’s say you mount the share as the S: drive, and the Stata/SE executable is at S:\Stata15\StataSE.exe. Right-click on the background to bring up the menu, point to New, and then select Shortcut from the list. Type the path into the box, or Browse to the executable. Enter Stata for the name of the shortcut.

Once the shortcut has been created, right-click on it, and select Properties. Change the Start in: field to a local drive to which users will have write access. This is where Stata will attempt to store files. If the machine will be used by more than one user, you will probably wish to use a local directory to which all users can write or the user home directory specified using the environment variables %HOMEDRIVE%%HOMEPATH%.

Installing OpenMP DLLs on workstations

When accessing Stata/MP on the server from a workstation, you might receive one of the following errors:

The application failed to initialize properly. Click on OK to terminate the application. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the problem.

These errors happen because Stata/MP requires a system DLL that may not exist on the workstation. In this case, you need to run one of the vcredist_*.exe located in the installation DVD’s winmpdll/ directory on the workstation on which you want to access Stata/MP.

Run vcredist_x86.exe if the Stata/MP on the server is StataMP.exe.
Run vcredist_x64.exe if the Stata/MP on the server is StataMP-64.exe.

You can also get the most recent release of this Microsoft DLL at the links below:

Stata 9 and 10 users will need to grab the older distribution of this DLL:

License renewal or changes

There will be times when your license needs to be changed: sites with an annual network will need to renew the license, the student version will need to be renewed, or the number of users may change. The procedure is the same in all these circumstances.

You will be making changes in the directory in which Stata is installed, and you will need the license and authorization information that is on your License and Authorization sheet or in the email you received from StataCorp.

  • Change to the directory in which Stata is installed.
  • Right-click on the STATA.LIC file, and select Rename from the menu.
  • Change the name of the file to STATA.LIC.OLD.
  • Run Stata, which will prompt you for your license information and re-create the STATA.LIC file.
  • Once you have entered the license information, it is always a good idea to run Stata as an unprivileged user to ensure that it runs correctly. If Stata runs for the privileged user but does not run for the unprivileged user, check the permissions on the STATA.LIC file.





The Stata Blog: Not Elsewhere Classified Find us on Facebook Follow us on Twitter LinkedIn YouTube Instagram
© Copyright 1996–2020 StataCorp LLC   •   Terms of use   •   Privacy   •   Contact us