Skip to main content

Trinity College Dublin, The University of Dublin

Trinity Menu Trinity Search



You are here Software Advice and Support > Software Licencing > Updates to license information - Stata

Updates to license information - Stata

To change the name, organization, number of users, or expiration date for your Stata license, you will first need to rename or move your existing license file and then reinitialize Stata. Follow the instructions for your operating system below:

Windows

Note: This guide was written using Windows 20H2 (OS Build 19042.804).

  1. Open File Explorer and click This PC > Local Disk (C:) > Program Files > Stata17



  2. Right-click on the Stata LIC file and choose Delete
    • Depending on your preferences, the LIC extension might be hidden



  3. Double-click on the Stata application (inside the same folder) to start a new session of Stata.
  4. Stata will prompt you to enter your license information:
    • You must enter text in all fields in the dialog before you can continue
    • Enter five or more characters in the Name and Organization fields
    • We recommend copying and pasting your Serial Number, Code, and Authorization



  5. After the license has been initialized, launch Stata and type the following to make sure you have the latest updates installed. Follow any instructions presented on the screen.

    update query

Mac

  1. Open Finder from the Dock



  2. Click on Applications in the left-hand pane. This will list everything in your Applications directory in the right-hand pane in alphabetical order. Double-click on the Stata folder. Right-click on the stata.lic file, and select Move to Trash.



  3. Double-click on the Stata application (inside the same folder) to start a new session of Stata. Stata will prompt you for your license information.
    • You must enter text in all fields in the dialog before you can continue
    • Enter five or more characters in the Name and Organization fields
    • We recommend copying and pasting your Serial Number, Code, and Authorization



  4. After the license has been initialized, launch Stata and type the following to make sure you have the latest updates installed. Follow any instructions presented on the screen.

    update query
  5. Change to the Stata installation directory, typically /usr/local/stata17, rename the license file, and rerun the license initialization program as the superuser, i.e:

    % sudo -s
    # cd /usr/local/stata17
    # mv stata.lic stata.lic.bak
    # ./stinit
    This will make a backup of your existing license file and then prompt you for the new license information.